Don't escape unicode in json files

This commit is contained in:
Andre Basche 2023-04-24 22:07:58 +02:00
parent e35a6ce751
commit e56f2c99c0
20 changed files with 6625 additions and 6643 deletions

View file

@ -262,7 +262,7 @@ def load_json(path):
def save_json(path, keys):
with open(path, "w") as json_file:
json_file.write(json.dumps(keys, indent=4))
json_file.write(json.dumps(keys, indent=4, ensure_ascii=False))
def load_key(full_key, json_data, fallback=None):
@ -279,7 +279,7 @@ def load_key(full_key, json_data, fallback=None):
def load_keys(full_key, json_data):
blacklist = ["description", "_recipe_", "_guided_"]
blacklist = ["description", "desctiption", "_recipe_", "_guided_"]
first, last = full_key.split(".")
data = json_data.get(first, {}).get(last, {})
return {