From 3829cd1ff217751728cb8347fc34bcc5fbdcc700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 27 Aug 2023 01:04:39 +0800 Subject: [PATCH] optimize: sort keys --- lib/i18n/locale_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n/locale_diff.py b/lib/i18n/locale_diff.py index 2572779..65bb929 100644 --- a/lib/i18n/locale_diff.py +++ b/lib/i18n/locale_diff.py @@ -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")