Add fix for Hebrew on Nspanel (Reverse every string in locale file)

This commit is contained in:
joBr99
2022-06-19 17:13:11 +02:00
committed by GitHub
parent d15cd551d3
commit 2b50369ee9

View File

@@ -57,6 +57,8 @@ def lookup(path_frontend_file, path_backend_file, lookupstr):
def get_translation(locale, lookupstr):
path_frontend_file, path_backend_file = build_locale_filestring(locale)
res = lookup(path_frontend_file, path_backend_file, lookupstr)
if locale == "he_IL":
res = res[::-1]
return res
out = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))