Reformat langs/en.json
This commit is contained in:
parent
5221e91dcd
commit
71f12c69f1
2 changed files with 546 additions and 541 deletions
|
@ -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
|
||||
*/
|
||||
|
@ -194,7 +199,6 @@ function genTranslations() {
|
|||
|
||||
fs.writeFileSync("./assets/generated/CompiledTranslations.ts", module);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -413,3 +417,4 @@ if (!themeOverwritesWeblate) {
|
|||
compileTranslationsFromWeblate();
|
||||
}
|
||||
genTranslations()
|
||||
formatFile("./langs/en.json")
|
Loading…
Add table
Add a link
Reference in a new issue