List locale alphabetically

This commit is contained in:
Ozzie Isaacs
2025-03-23 09:18:48 +01:00
parent 81a0b15a3d
commit e485f10e9e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def get_user_locale_language(user_language):
def get_available_locale():
return [Locale('en')] + babel.list_translations()
return sorted(babel.list_translations(), key=lambda x: x.display_name.lower())
def get_available_translations():