Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/xui/settings.html')
-rw-r--r--web/html/xui/settings.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 58a1bf8a..e8fa7e11 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -179,10 +179,10 @@
<template #control>
<a-select ref="selectLang"
v-model="lang"
- @change="setLang(lang)"
+ @change="LanguageManager.setLanguage(lang)"
:dropdown-class-name="themeSwitcher.currentTheme"
style="width: 100%">
- <a-select-option :value="l.value" :label="l.value" v-for="l in supportLangs">
+ <a-select-option :value="l.value" :label="l.value" v-for="l in LanguageManager.supportedLanguages">
<span role="img" :aria-label="l.name" v-text="l.icon"></span> &nbsp;&nbsp; <span v-text="l.name"></span>
</a-select-option>
</a-select>
@@ -344,7 +344,7 @@
<template #title>{{ i18n "pages.settings.telegramBotLanguage"}}</template>
<template #control>
<a-select ref="selectBotLang" v-model="allSetting.tgLang" :dropdown-class-name="themeSwitcher.currentTheme" style="width: 100%">
- <a-select-option :value="l.value" :label="l.value" v-for="l in supportLangs">
+ <a-select-option :value="l.value" :label="l.value" v-for="l in LanguageManager.supportedLanguages">
<span role="img" :aria-label="l.name" v-text="l.icon"></span> &nbsp;&nbsp; <span v-text="l.name"></span>
</a-select-option>
</a-select>
@@ -672,7 +672,7 @@
allSetting: new AllSetting(),
saveBtnDisable: true,
user: {},
- lang: getLang(),
+ lang: LanguageManager.getLanguage(),
remarkModels: { i: 'Inbound', e: 'Email', o: 'Other' },
remarkSeparators: [' ', '-', '_', '@', ':', '~', '|', ',', '.', '/'],
datepickerList: [{ name: 'Gregorian (Standard)', value: 'gregorian' }, { name: 'Jalalian (شمسی)', value: 'jalalian' }],