提交 afe1d6e7 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复在微信小程序下切换语言报LANG=""

LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=不存在的问题
上级 003d3ca9
......@@ -65,7 +65,7 @@
"url": "请填写隐私政策链接"
}
]
if(getApp().$i18n.locale == 'en'){
if(getApp().globalData.$i18n.locale == 'en'){
agreements = [{
"title": "User service agreement", //协议名称
"url": "请填写用户服务协议链接" //对应的网络链接
......
## 1.1.2(2021-08-30)
修复在微信小程序下切换语言报`locale`不存在的问题
## 1.1.1(2021-08-30)
- 解决3.2.6以下版本hbuilderx,编译的项目报`uni.setLocale`不存在的问题
## 1.1.0(2021-08-27)
......
{
"id": "uni-starter",
"displayName": "uni-starter",
"version": "1.1.1",
"version": "1.1.2",
"description": "云端一体应用快速开发基本项目模版",
"keywords": [
"login",
......
......@@ -258,7 +258,7 @@
language = globalData.locale = 'en'
}
uni.setStorageSync('CURRENT_LANG', language)
getApp().$i18n.locale = language
getApp().globalData.$i18n.locale = language
this.currentLanguage = res.tapIndex?'简体中文':'English'
if(uni.setLocale){
uni.setLocale(language)
......
......@@ -160,7 +160,7 @@
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "",
"appid" : "wx81dbb061d2258234",
"setting" : {
"urlCheck" : false,
"es6" : false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册