release polish

This commit is contained in:
Nuno Coração
2026-01-01 23:56:30 +00:00
parent 949e367a01
commit e8d22f1f1b
14 changed files with 139 additions and 22 deletions

View File

@@ -127,9 +127,12 @@ async function translateFrontMatterTags(block, targetLang, tags) {
console.log(i, user.title, dir);
await fs.writeFile(dir + "/index.md", userMDFile);
for (const lang of targetLangs) {
for (var lang of targetLangs) {
const langfilename = lang
if (lang == "pt-br" || lang == "pt-pt")
lang = "pt"
const content = await translateFrontMatterTags(userMDFile, lang, user.tags);
await fs.writeFile(dir + `/index.${lang}.md`, content);
await fs.writeFile(dir + `/index.${langfilename}.md`, content);
}
await page.goto(user.url);
await page.screenshot({ path: dir + "/feature.webp", type: "webp", quality: 50 });