forked from CGM_Public/pretix_original
Fix babel locale discovery for zh_Hans_US
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user