mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-20 21:24:44 +01:00
Update localization.py
This commit is contained in:
@@ -30,7 +30,7 @@ def lookup(path_frontend_file, path_backend_file, lookupstr):
|
|||||||
res = res[k]
|
res = res[k]
|
||||||
if type(res) is not str:
|
if type(res) is not str:
|
||||||
#res = "error_tnf"
|
#res = "error_tnf"
|
||||||
res = lookupstr
|
res = lookupstr.split(".")["-1"]
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def get_translation(locale, lookupstr):
|
def get_translation(locale, lookupstr):
|
||||||
|
|||||||
Reference in New Issue
Block a user