forked from Shinonome/dots-hyprland
translation?service?:safer?access???
This commit is contained in:
@@ -79,7 +79,7 @@ Singleton {
|
|||||||
// Special cases
|
// Special cases
|
||||||
if (!text) return "";
|
if (!text) return "";
|
||||||
var key = text.toString();
|
var key = text.toString();
|
||||||
if (root.isLoading || (!root.translations.hasOwnProperty(key) && !root.generatedTranslations.hasOwnProperty(key)))
|
if (root.isLoading || (!root?.translations?.hasOwnProperty(key) && !root?.generatedTranslations?.hasOwnProperty(key)))
|
||||||
return key;
|
return key;
|
||||||
|
|
||||||
// Normal cases
|
// Normal cases
|
||||||
|
|||||||
Reference in New Issue
Block a user