From 1b8b33c4c3e585b002570bf903d883f6ca42cb1e Mon Sep 17 00:00:00 2001
From: Ponkhy
Date: Sun, 5 Sep 2021 15:40:35 +0200
Subject: [PATCH] Added set language to the Setup.vue
---
src/languages/de-DE.js | 3 ++-
src/languages/en.js | 3 ++-
src/pages/Setup.vue | 16 +++++++++++++++-
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js
index 76c355a3..1f8eb055 100644
--- a/src/languages/de-DE.js
+++ b/src/languages/de-DE.js
@@ -108,5 +108,6 @@ export default {
"Repeat Password": "Wiederhole das Passwort",
"Resource Record Type": "Resource Record Type",
respTime: "Antw. Zeit (ms)",
- notAvailableShort: "N/A"
+ notAvailableShort: "N/A",
+ Create: "Erstellen",
}
diff --git a/src/languages/en.js b/src/languages/en.js
index f0e4ae96..6a4f5e2f 100644
--- a/src/languages/en.js
+++ b/src/languages/en.js
@@ -108,5 +108,6 @@ export default {
"Create your admin account": "Create your admin account",
"Repeat Password": "Repeat Password",
respTime: "Resp. Time (ms)",
- notAvailableShort: "N/A"
+ notAvailableShort: "N/A",
+ Create: "Create",
}
diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue
index 756aff36..dbff8683 100644
--- a/src/pages/Setup.vue
+++ b/src/pages/Setup.vue
@@ -14,6 +14,15 @@
+
+
+
+
+
@@ -29,7 +38,7 @@
@@ -49,6 +58,11 @@ export default {
repeatPassword: "",
}
},
+ watch: {
+ "$i18n.locale"() {
+ localStorage.locale = this.$i18n.locale;
+ },
+ },
mounted() {
this.$root.getSocket().emit("needSetup", (needSetup) => {
if (! needSetup) {