Prepare autoformatting translations

This commit is contained in:
pietervdvn 2022-02-18 03:37:17 +01:00
parent 5de073344a
commit d0f0f3ecc4

View file

@ -516,7 +516,13 @@ if (!themeOverwritesWeblate) {
compileTranslationsFromWeblate();
}
genTranslations()
formatFile("./langs/en.json")
formatFile("./langs/themes/nl.json")
/*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")