添加俄语版本

This commit is contained in:
浅念
2025-04-08 09:30:48 +08:00
parent 9c93214b0f
commit 8beda0c969
16 changed files with 91 additions and 51 deletions
+8 -2
View File
@@ -82,6 +82,9 @@
}, {
label: this.$t('en'),
id: 'en'
},{
label: this.$t('ru'),
id: 'ru'
}]
],
language:uni.getLocale()
@@ -105,7 +108,7 @@
confirmlang(e) {
uni.setLocale(e.value[0].id)
this.$i18n.locale = e.value[0].id
// uni.setStorageSync('i18locale', e.value[0].id);
uni.setStorageSync('i18locale', e.value[0].id);
this.language = e.value[0].id
this.showlang = false
this.columns =[
@@ -115,6 +118,9 @@
}, {
label: this.$t('en'),
id: 'en'
},{
label: this.$t('ru'),
id: 'ru'
}]
];
this.list1 = [{
@@ -186,7 +192,7 @@
language: this.language,
}
}).then(res => {
console.log(res.data.data)
uni.setStorageSync('i18locale',this.language);
if (res.data.code == -1) {
uni.showToast({
title: res.data.message,