forked from MapComplete/MapComplete
Fix(translation-support): use correct weblate link for descriptions on index page
This commit is contained in:
parent
c52c2f097a
commit
cab3492742
2 changed files with 23 additions and 11 deletions
|
@ -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,
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue