1f208dbb21
### Implementation description I synchronized the json key order with `en_US.json` in each lang file. ### Additional things Here are simple python script that make this change ```python import json from collections import OrderedDict original = "./en_US.json" modified = [ "./de_DE.json", "./es_ES.json", "./it_IT.json", "./ja_JP.json", "./ko_KR.json", "./pt_BR.json", "./zh_CN.json", "./zh_TW.json", ] for modify in modified: dict_2 = {} with open(original, 'r', encoding='utf-8') as f1, open(modify, 'r', encoding='utf-8') as f2: dict_1 = json.load(f1) dict_2 = json.load(f2) dict_1_translations = dict_1["translations"] dict_2_translations = dict_2["translations"] ordered_dict_2 = OrderedDict((k, dict_2_translations[k]) for k in dict_1_translations.keys()) dict_2["translations"] = ordered_dict_2 with open(modify, 'w', encoding='utf-8') as f2: json.dump(dict_2, f2, ensure_ascii=False, indent=4) ``` |
||
---|---|---|
.. | ||
assets | ||
lang | ||
layouts | ||
licenses | ||
shaders/default | ||
themes | ||
logo.ans | ||
tips.json |