Skip to content

Commit

Permalink
Fixed localization
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 authored May 13, 2022
1 parent 792da24 commit c647c42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/nspanel-lovelace-ui/luibackend/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@
}

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)
Expand Down

0 comments on commit c647c42

Please sign in to comment.