Work on lang #332

This commit is contained in:
Jokob-sk
2023-08-10 07:13:04 +10:00
parent a0d02b2aa5
commit 320660945c
6 changed files with 25 additions and 8 deletions

View File

@@ -193,6 +193,11 @@ function getString (key) {
}
result = getCache(`pia_lang_${key}_${lang_code}`, true);
if(isEmpty(result))
{
result = getCache(`pia_lang_${key}_en_us`, true);
}
return result;
}
@@ -476,6 +481,12 @@ function navigateToDeviceWithIp (ip) {
});
}
// -----------------------------------------------------------------------------
function isEmpty(value)
{
return emptyArr.includes(value)
}
// initialize
cacheSettings()
cacheStrings()