Do not escape UTF-8 characters anymore

This commit is contained in:
WolverinDEV 2019-10-19 18:09:55 +02:00
parent af167be668
commit 17911edc41

View file

@ -4,6 +4,7 @@
We want python 2.7 again... We want python 2.7 again...
""" """
import io
import json import json
import sys import sys
@ -112,8 +113,8 @@ def translate_messages(source, destination, target_language):
"name": "Auto translated messages for language " + target_language "name": "Auto translated messages for language " + target_language
} }
with open(destination, 'w') as f: with io.open(destination, 'w', encoding='utf8') as f:
f.write(json.dumps(result, indent=2)) f.write(json.dumps(result, indent=2, ensure_ascii=False))
print("Done") print("Done")