Fix(translation-support): use correct weblate link for descriptions on index page

This commit is contained in:
Pieter Vander Vennet 2025-07-12 11:21:57 +02:00
parent c52c2f097a
commit cab3492742
2 changed files with 23 additions and 11 deletions

View file

@ -636,7 +636,10 @@ class LayerOverviewUtils extends Script {
writeFileSync(
"./src/assets/generated/theme_overview.json",
JSON.stringify({ layers: layerKeywords, themes: sorted }, null, " "),
JSON.stringify({
"#":"Generated by generateLayerOverview",
"#version": new Date().toISOString(),
layers: layerKeywords, themes: sorted }, null, " "),
{ encoding: "utf8" }
)
}
@ -1301,7 +1304,7 @@ class LayerOverviewUtils extends Script {
...t,
hideFromOverview: t.hideFromOverview ?? false,
shortDescription:
t.shortDescription ?? new Translation(t.description).FirstSentence(),
t.shortDescription ?? new Translation(t.description).FirstSentence(true),
mustHaveLanguage: t.mustHaveLanguage?.length > 0,
}
}),