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

This commit is contained in:
Johannes
2022-06-19 17:13:11 +02:00
committed by GitHub
parent 3002a7d2e0
commit 2173b5c5cf

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)))