Reformat langs/en.json

This commit is contained in:
Pieter Vander Vennet 2022-02-14 20:09:17 +01:00
parent 5221e91dcd
commit 71f12c69f1
2 changed files with 546 additions and 541 deletions

File diff suppressed because it is too large Load diff

View file

@ -181,6 +181,11 @@ function transformTranslation(obj: any, depth = 1) {
} }
function formatFile(path) {
const contents = JSON.parse(readFileSync(path, "utf8"))
writeFileSync(path, JSON.stringify(contents, null, " "))
}
/** /**
* Generates the big compiledTranslations file * Generates the big compiledTranslations file
*/ */
@ -194,7 +199,6 @@ function genTranslations() {
fs.writeFileSync("./assets/generated/CompiledTranslations.ts", module); fs.writeFileSync("./assets/generated/CompiledTranslations.ts", module);
} }
/** /**
@ -412,4 +416,5 @@ if (!themeOverwritesWeblate) {
// Generates the core translations // Generates the core translations
compileTranslationsFromWeblate(); compileTranslationsFromWeblate();
} }
genTranslations() genTranslations()
formatFile("./langs/en.json")