mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
scripts: fix langmover for non-ascii chars
This commit is contained in:
parent
2fc2f1ddb3
commit
ebdad3f7c7
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
33
scripts/langmover/login.json
Normal file
33
scripts/langmover/login.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user