From 38bb36ebe18b0972ffc2c25b63f7e99c23f8c02d Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 6 Aug 2022 22:11:38 +0200 Subject: [PATCH 1/3] feat: add defaultLocale in config.json Signed-off-by: Stefan Dej --- public/config.json | 1 + src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/public/config.json b/public/config.json index d2a269291..63e89d9fb 100644 --- a/public/config.json +++ b/public/config.json @@ -1,4 +1,5 @@ { + "defaultLocale": "en", "hostname": null, "port": null, "remoteMode": false, diff --git a/src/main.ts b/src/main.ts index 738efd42d..55863f0c0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -82,6 +82,7 @@ const initLoad = async () => { window.console.debug('Loaded config.json') await store.dispatch('importConfigJson', file) + if ('defaultLocale' in file) i18n.locale = file.defaultLocale }) .catch((_) => { window.console.error('config.json not found or cannot be decoded!') From bb003ff5819a45e77294d994a8c72b851f91e281 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 6 Aug 2022 22:11:57 +0200 Subject: [PATCH 2/3] locale(de): fix missing entry in de.json Signed-off-by: Stefan Dej --- src/locales/de.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locales/de.json b/src/locales/de.json index 10c5ce253..34dee908f 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -111,6 +111,7 @@ "CheckMoonrakerLog": "Wenn diese Meldung wiederholt erscheint, schaue bitte in die Logdatei unter:", "Connecting": "Verbinde zu {host}", "Failed": "Verbindung fehlgeschlagen", + "Initializing": "Inizialisieren", "TryAgain": "Erneut versuchen" }, "Console": { From 50e0df946bf55c284d9e211894fb53e3b1cfafb6 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 7 Aug 2022 22:49:23 +0200 Subject: [PATCH 3/3] locale(de): fix translation Co-authored-by: th33xitus --- src/locales/de.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/de.json b/src/locales/de.json index 34dee908f..de15016b3 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -111,7 +111,7 @@ "CheckMoonrakerLog": "Wenn diese Meldung wiederholt erscheint, schaue bitte in die Logdatei unter:", "Connecting": "Verbinde zu {host}", "Failed": "Verbindung fehlgeschlagen", - "Initializing": "Inizialisieren", + "Initializing": "Initialisieren", "TryAgain": "Erneut versuchen" }, "Console": {