From 87c5ace24dbda88cc0fb90c7068f5fa59ceddf8b Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Fri, 3 Mar 2017 12:14:32 +0500 Subject: [PATCH] i18n: Use deterministic order in translations.json. Fixes: #3897 --- zerver/management/commands/makemessages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py index 9560a5984f..8635fe086f 100644 --- a/zerver/management/commands/makemessages.py +++ b/zerver/management/commands/makemessages.py @@ -246,4 +246,4 @@ class Command(makemessages.Command): new_strings = self.get_new_strings(old_strings, translation_strings) with open(output_path, 'w') as writer: - json.dump(new_strings, writer, indent=2) + json.dump(new_strings, writer, indent=2, sort_keys=True)