resume: rename EN output to resume-en.pdf, show bare filenames in the dialog (spec-v3 follow-up 24)

This commit is contained in:
dong.nguyen committed 2026-10-27 12:34:22 +07:00
1 parent 61a01e25ca
commit 33fa6ebefd
6 files changed
+11 -10

No files matched your search

+2 -3
View File
@@ -235,8 +235,7 @@ if (previewMode) {
} else {
const page = await browser.newPage();
for (const lang of langs) {
const langSuffix = lang === 'en' ? '' : `-${lang}`;
const outputPath = join(ROOT, `dist/resume${langSuffix}.pdf`);
const outputPath = join(ROOT, `dist/resume-${lang}.pdf`);
mkdirSync(dirname(outputPath), { recursive: true });
await page.setContent(pages[lang]);
await page.pdf({
@@ -246,7 +245,7 @@ if (previewMode) {
preferCSSPageSize: true,
tagged: true,
});
console.log(`resume${langSuffix}.pdf generated at ${outputPath} [${lang}]`);
console.log(`resume-${lang}.pdf generated at ${outputPath} [${lang}]`);
}
await browser.close();
}