Skip to content

Commit 79c7a20

Browse files
committed
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
1 parent 893d6a0 commit 79c7a20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin/shell.nss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
// localization
1212
$loc_path='imports\lang\'
13-
import lang if(path.exists(loc_path + sys.lang + ".nss"),
14-
loc_path + sys.lang + ".nss",
15-
loc_path + "\\en.nss")
13+
import lang loc_path + "en.nss"
14+
import lang if(path.exists(loc_path + sys.lang + ".nss"),
15+
loc_path + sys.lang + ".nss",
16+
loc_path + "en.nss")
1617
1718
// or import lang 'imports/lang/en.nss'
1819

0 commit comments

Comments
 (0)