optimize: sort keys

This commit is contained in:
源文雨 2023-08-27 01:04:39 +08:00
parent 473c20c264
commit 3829cd1ff2

View File

@ -41,5 +41,5 @@ for lang_file in languages:
# Save the updated language file
with open(lang_file, "w", encoding="utf-8") as f:
json.dump(lang_data, f, ensure_ascii=False, indent=4)
json.dump(lang_data, f, ensure_ascii=False, indent=4, sort_keys=True)
f.write("\n")