1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

scripts: fix langmover for non-ascii chars

This commit is contained in:
Harvey Tindall 2023-06-16 20:59:06 +01:00
parent 2fc2f1ddb3
commit ebdad3f7c7
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 35 additions and 2 deletions

View File

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

View File

@ -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"
}
}