mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 06:27:01 +01:00
Add fix for Hebrew on Nspanel (Reverse every string in locale file)
This commit is contained in:
@@ -57,6 +57,8 @@ def lookup(path_frontend_file, path_backend_file, lookupstr):
|
|||||||
def get_translation(locale, lookupstr):
|
def get_translation(locale, lookupstr):
|
||||||
path_frontend_file, path_backend_file = build_locale_filestring(locale)
|
path_frontend_file, path_backend_file = build_locale_filestring(locale)
|
||||||
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
|
||||||
|
|
||||||
out = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))
|
out = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))
|
||||||
|
|||||||
Reference in New Issue
Block a user