Also lowercase language

This commit is contained in:
Kovid Goyal 2023-07-13 07:38:03 +05:30
parent 74bd089c64
commit f1ee07e199
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -46,7 +46,9 @@ def iterate_over_builtin_recipe_files():
def normalize_language(x: str) -> str: def normalize_language(x: str) -> str:
lang, sep, country = x.replace('-', '_').partition('_') lang, sep, country = x.replace('-', '_').partition('_')
if sep == '_': if sep == '_':
x = f'{lang}{sep}{country.upper()}' x = f'{lang.lower()}{sep}{country.upper()}'
else:
x = lang.lower()
return x return x