Skip to content

Commit

Permalink
Update localization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 committed Jun 18, 2022
1 parent 09fee90 commit 31e071c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/nspanel-lovelace-ui/luibackend/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def get_translation(locale, lookupstr):
if res.startswith("error"):
path_frontend_file, path_backend_file = build_locale_filestring("en_US")
res = lookup(path_frontend_file, path_backend_file, lookupstr)
if locale == "he_IL":
res = res[::-1]
return res

#print(get_translation("en_US", "frontend.state_attributes.climate.hvac_action.idle"))
#print(get_translation("en_US", "frontend.state_attributes.climate.hvac_action.idle"))

0 comments on commit 31e071c

Please sign in to comment.