aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-29 00:39:52 +0100
committer0neGal <mail@0negal.com>2021-12-29 00:39:52 +0100
commitaefef2040280ae9e4292c39df65f2b378128aa07 (patch)
tree61dacc098255a7d102236bbd4d13b952fa91e573 /src/app
parent8b90dc59f005ccb394f3392a80dcc28cc0ac73e7 (diff)
downloadViper-aefef2040280ae9e4292c39df65f2b378128aa07.tar.gz
Viper-aefef2040280ae9e4292c39df65f2b378128aa07.zip
uses navigator.language to determine language
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index a3a5676..579f785 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -7,12 +7,15 @@ const lang = require("../lang");
var settings = {
gamepath: "",
zip: "/northstar.zip",
+ lang: navigator.language,
excludes: [
"ns_startup_args.txt",
"ns_startup_args_dedi.txt"
]
}
+ipcRenderer.send("setlang", settings.lang);
+
if (fs.existsSync("viper.json")) {
settings = {...settings, ...JSON.parse(fs.readFileSync("viper.json", "utf8"))};
settings.zip = path.join(settings.gamepath + "/northstar.zip");