Also lowercase language

This commit is contained in:
Kovid Goyal
2023-07-13 07:38:03 +05:30
parent 74bd089c64
commit f1ee07e199
+3 -1
View File
@@ -46,7 +46,9 @@ def iterate_over_builtin_recipe_files():
def normalize_language(x: str) -> str:
lang, sep, country = x.replace('-', '_').partition('_')
if sep == '_':
x = f'{lang}{sep}{country.upper()}'
x = f'{lang.lower()}{sep}{country.upper()}'
else:
x = lang.lower()
return x