Reformat langs/en.json
This commit is contained in:
parent
5221e91dcd
commit
71f12c69f1
2 changed files with 546 additions and 541 deletions
|
@ -525,7 +525,7 @@
|
||||||
"email": {
|
"email": {
|
||||||
"feedback": "This is not a valid email address",
|
"feedback": "This is not a valid email address",
|
||||||
"noAt": "An email address should contain an @"
|
"noAt": "An email address should contain an @"
|
||||||
},
|
},
|
||||||
"phone": {
|
"phone": {
|
||||||
"feedback": "This is not a valid phone number"
|
"feedback": "This is not a valid phone number"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -413,3 +417,4 @@ if (!themeOverwritesWeblate) {
|
||||||
compileTranslationsFromWeblate();
|
compileTranslationsFromWeblate();
|
||||||
}
|
}
|
||||||
genTranslations()
|
genTranslations()
|
||||||
|
formatFile("./langs/en.json")
|
Loading…
Add table
Add a link
Reference in a new issue