mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-17 10:27:00 +01:00
Update localization.py
This commit is contained in:
@@ -38,6 +38,8 @@ def get_translation(locale, lookupstr):
|
|||||||
if res.startswith("error"):
|
if res.startswith("error"):
|
||||||
path_frontend_file, path_backend_file = build_locale_filestring("en_US")
|
path_frontend_file, path_backend_file = build_locale_filestring("en_US")
|
||||||
res = lookup(path_frontend_file, path_backend_file, lookupstr)
|
res = lookup(path_frontend_file, path_backend_file, lookupstr)
|
||||||
|
if locale == "he_IL":
|
||||||
|
res = res[::-1]
|
||||||
return res
|
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"))
|
||||||
Reference in New Issue
Block a user