forked from MapComplete/MapComplete
Translation sync
This commit is contained in:
parent
057c3fb54b
commit
6252c4e888
5 changed files with 37 additions and 19 deletions
|
@ -582,14 +582,12 @@ if (!themeOverwritesWeblate) {
|
|||
genTranslations()
|
||||
const allTranslationFiles = ScriptUtils.readDirRecSync("langs").filter(path => path.endsWith(".json"))
|
||||
for (const path of allTranslationFiles) {
|
||||
console.log("Formatting ", path)
|
||||
formatFile(path)
|
||||
}
|
||||
|
||||
|
||||
// Some validation
|
||||
TranslationPart.fromDirectory("./langs").validateStrict("./langs")
|
||||
TranslationPart.fromDirectory("./langs/layers").validateStrict("layers")
|
||||
TranslationPart.fromDirectory("./langs/themes").validateStrict("themes")
|
||||
TranslationPart.fromDirectory("./langs/shared-questions").validateStrict("shared-questions")
|
||||
|
||||
console.log("All done!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue