scripts: fix langmover for non-ascii chars

user-page
Harvey Tindall 1 year ago
parent 2fc2f1ddb3
commit ebdad3f7c7
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -102,10 +102,10 @@ def generate(templ: Path, source: Path, output: Path, extract: bool, tree):
if extract and val != "":
with open(source / folder / lang, "w") as f:
json.dump(modifiedTree[folder], f, indent=4)
json.dump(modifiedTree[folder], f, indent=4, ensure_ascii=False)
with open(output / Path(lang), "w") as f:
json.dump(out, f, indent=4)
json.dump(out, f, indent=4, ensure_ascii=False)

@ -0,0 +1,33 @@
{
"meta": {},
"strings": {
"username": "common",
"password": "common",
"emailAddress": "common",
"name": "common",
"submit": "common",
"send": "common",
"success": "common",
"continue": "common",
"error": "common",
"copy": "common",
"copied": "common",
"time24h": "common",
"time12h": "common",
"linkTelegram": "common",
"contactEmail": "common",
"contactTelegram": "common",
"linkDiscord": "common",
"linkMatrix": "common",
"contactDiscord": "common",
"theme": "common",
"refresh": "common",
"required": "common"
},
"notifications": {
"errorLoginBlank": "admin",
"errorConnection": "admin",
"errorUnknown": "admin",
"error401Unauthorized": "admin"
}
}
Loading…
Cancel
Save