From 894f164869649b820e7d145d4017e59e256dd947 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 20 Feb 2024 12:21:49 +0100 Subject: [fix] sort RTL_LOCALES before written into locales.json To avoid unnecessary changes to the file, the list should be sorted before it is written to the file. You can test it by calling multiple times:: make data.locales and searx/data/locales.json should be unchanged. Signed-off-by: Markus Heiser --- searxng_extra/update/update_locales.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 searxng_extra/update/update_locales.py (limited to 'searxng_extra') diff --git a/searxng_extra/update/update_locales.py b/searxng_extra/update/update_locales.py old mode 100644 new mode 100755 index e823ebaf1..d97a5dd88 --- a/searxng_extra/update/update_locales.py +++ b/searxng_extra/update/update_locales.py @@ -58,7 +58,7 @@ def main(): content = { "LOCALE_NAMES": LOCALE_NAMES, - "RTL_LOCALES": list(RTL_LOCALES), + "RTL_LOCALES": sorted(RTL_LOCALES), } with open(LOCALE_DATA_FILE, 'w', encoding='utf-8') as f: -- cgit v1.2.3-54-g00ecf