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
2 changed files with 35 additions and 2 deletions
+2 -2
View File
@@ -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)