Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzj-java
uni-app
提交
ac08f5bb
U
uni-app
项目概览
wzj-java
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ac08f5bb
编写于
6月 07, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
d600460c
变更
13
展开全部
显示空白变更内容
内联
并排
Showing
13 changed file
with
14 addition
and
53 deletion
+14
-53
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+1
-1
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+1
-40
packages/uni-app-plus/dist/view.umd.min.js
packages/uni-app-plus/dist/view.umd.min.js
+2
-2
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+1
-1
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+1
-1
packages/uni-mp-jd/dist/index.js
packages/uni-mp-jd/dist/index.js
+1
-1
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+1
-1
packages/uni-mp-lark/dist/index.js
packages/uni-mp-lark/dist/index.js
+1
-1
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+1
-1
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+1
-1
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+1
-1
packages/uni-mp-xhs/dist/index.js
packages/uni-mp-xhs/dist/index.js
+1
-1
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+1
-1
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -688,7 +688,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -688,7 +688,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
ac08f5bb
...
@@ -1842,7 +1842,7 @@ var serviceContext = (function () {
...
@@ -1842,7 +1842,7 @@ var serviceContext = (function () {
};
};
Object.defineProperty(appVm, '$locale', {
Object.defineProperty(appVm, '$locale', {
get () {
get () {
return
normalizeLocale$1(state.locale)
return
state.locale
},
},
set (v) {
set (v) {
state.locale = v;
state.locale = v;
...
@@ -1916,45 +1916,6 @@ var serviceContext = (function () {
...
@@ -1916,45 +1916,6 @@ var serviceContext = (function () {
])
])
}
}
}
}
function include$1 (str, parts) {
return !!parts.find((part) => str.indexOf(part) !== -1)
}
function startsWith$1 (str, parts) {
return parts.find((part) => str.indexOf(part) === 0)
}
function normalizeLocale$1 (locale, messages) {
if (!locale) {
return
}
locale = locale.trim().replace(/_/g, '-');
if (messages && messages[locale]) {
return locale
}
locale = locale.toLowerCase();
if (locale === 'chinese') {
// 支付宝
return LOCALE_ZH_HANS$1
}
if (locale.indexOf('zh') === 0) {
if (locale.indexOf('-hans') > -1) {
return LOCALE_ZH_HANS$1
}
if (locale.indexOf('-hant') > -1) {
return LOCALE_ZH_HANT$1
}
if (include$1(locale, ['-tw', '-hk', '-mo', '-cht'])) {
return LOCALE_ZH_HANT$1
}
return LOCALE_ZH_HANS$1
}
const lang = startsWith$1(locale, [LOCALE_EN$1, LOCALE_FR$1, LOCALE_ES$1]);
if (lang) {
return lang
}
}
// export function initI18n() {
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// if (localeKeys.length) {
...
...
packages/uni-app-plus/dist/view.umd.min.js
浏览文件 @
ac08f5bb
此差异已折叠。
点击以展开。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-jd/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-kuaishou/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-lark/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -504,7 +504,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -504,7 +504,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-mp-xhs/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
ac08f5bb
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
...
@@ -494,7 +494,7 @@ function initAppLocale (Vue, appVm, locale) {
};
};
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
Object
.
defineProperty
(
appVm
,
'
$locale
'
,
{
get
()
{
get
()
{
return
normalizeLocale
(
state
.
locale
)
return
state
.
locale
},
},
set
(
v
)
{
set
(
v
)
{
state
.
locale
=
v
;
state
.
locale
=
v
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录