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

View file

@ -525,7 +525,7 @@
"email": {
"feedback": "This is not a valid email address",
"noAt": "An email address should contain an @"
},
},
"phone": {
"feedback": "This is not a valid phone number"
},

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
*/
@ -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")