From 31e071c924be77baf76ca7ca7d6293fe011c2c13 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 18 Jun 2022 18:05:48 +0200 Subject: [PATCH] Update localization.py --- apps/nspanel-lovelace-ui/luibackend/localization.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/localization.py b/apps/nspanel-lovelace-ui/luibackend/localization.py index b278aa73..c87b5b84 100644 --- a/apps/nspanel-lovelace-ui/luibackend/localization.py +++ b/apps/nspanel-lovelace-ui/luibackend/localization.py @@ -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")) \ No newline at end of file +#print(get_translation("en_US", "frontend.state_attributes.climate.hvac_action.idle"))