Fix babel locale discovery for zh_Hans_US

This commit is contained in:
Raphael Michel
2026-01-23 11:35:37 +01:00
parent fd72e18a7f
commit 059179aecb
2 changed files with 2 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ def get_babel_locale():
for locale in try_locales:
if localedata.exists(locale):
return locale
return localedata.normalize_locale(locale)
return "en"