添加俄语版本
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user