Fixed localization

This commit is contained in:
Johannes
2022-05-13 22:17:28 +02:00
committed by GitHub
parent 792da24c61
commit c647c42095

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)