mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 03:50:12 +03:00
Fix change language issue in the setup page
This commit is contained in:
parent
271cca0d23
commit
0197778af1
1 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<select id="language" v-model="$i18n.locale" class="form-select">
|
<select id="language" v-model="$root.language" class="form-select">
|
||||||
<option v-for="(lang, i) in $i18n.availableLocales" :key="`Lang${i}`" :value="lang">
|
<option v-for="(lang, i) in $i18n.availableLocales" :key="`Lang${i}`" :value="lang">
|
||||||
{{ $i18n.messages[lang].languageName }}
|
{{ $i18n.messages[lang].languageName }}
|
||||||
</option>
|
</option>
|
||||||
|
@ -59,9 +59,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
"$i18n.locale"() {
|
|
||||||
localStorage.locale = this.$i18n.locale;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$root.getSocket().emit("needSetup", (needSetup) => {
|
this.$root.getSocket().emit("needSetup", (needSetup) => {
|
||||||
|
|
Loading…
Reference in a new issue