mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 20:28:45 +08:00
Merge remote-tracking branch 'remote/master' into feature/add-xml-support-to-http-monitors
This commit is contained in:
@@ -38,6 +38,7 @@ const languageList = {
|
||||
"th-TH": "ไทย",
|
||||
"el-GR": "Ελληνικά",
|
||||
"yue": "繁體中文 (廣東話 / 粵語)",
|
||||
"ro": "Limba română",
|
||||
};
|
||||
|
||||
let messages = {
|
||||
|
3
src/lang/ro.json
Normal file
3
src/lang/ro.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"languageName": "Limba română"
|
||||
}
|
@@ -14,7 +14,7 @@
|
||||
</p>
|
||||
|
||||
<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">
|
||||
{{ $i18n.messages[lang].languageName }}
|
||||
</option>
|
||||
@@ -59,9 +59,7 @@ export default {
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
"$i18n.locale"() {
|
||||
localStorage.locale = this.$i18n.locale;
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.$root.getSocket().emit("needSetup", (needSetup) => {
|
||||
|
Reference in New Issue
Block a user