Update the language loading logic in shell.ns

When there is a missing translation item, it will no longer be displayed as blank, but as English
This commit is contained in:
XY0797 committed 2025-01-27 14:46:55 +08:00
1 parent 893d6a088c
commit 79c7a20dad
1 file changed
+4 -3
+4 -3
View File
@@ -10,9 +10,10 @@
// localization
$loc_path='imports\lang\'
import lang if(path.exists(loc_path + sys.lang + ".nss"),
loc_path + sys.lang + ".nss",
loc_path + "\\en.nss")
import lang loc_path + "en.nss"
import lang if(path.exists(loc_path + sys.lang + ".nss"),
loc_path + sys.lang + ".nss",
loc_path + "en.nss")
// or import lang 'imports/lang/en.nss'