Fixed localization

This commit is contained in:
joBr99
2022-05-13 22:17:28 +02:00
committed by GitHub
parent 412ebf4145
commit 5e613f18e0

View File

@@ -883,6 +883,7 @@ translations = {
}
def get_translation(locale, input):
locale = locale.split("_")[0]
en_fallback_res = translations.get("en").get(input, input)
if locale in translations:
return translations.get(locale).get(input, en_fallback_res)