Reformat langs/en.json
This commit is contained in:
parent
5221e91dcd
commit
71f12c69f1
2 changed files with 546 additions and 541 deletions
1078
langs/en.json
1078
langs/en.json
File diff suppressed because it is too large
Load diff
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue