Skip to content

Commit 003bccf

Browse files
author
白唯
committedNov 11, 2020
fix(i18n): 修复 i18n修改 antdv组件国际化模版出错问题
1 parent ed70e47 commit 003bccf

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed
 

‎CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [0.1.13](https://github.com/ibwei/vue3-base/compare/v0.1.10...v0.1.13) (2020-11-09)
2+
3+
4+
### Bug Fixes
5+
6+
* **i18n:** 修复 antd-vue 语言国际化出错问题 ([1cd844d](https://github.com/ibwei/vue3-base/commit/1cd844d08d51b0dc115dbe47352caadd684380ef))
7+
* **i18n:** 修复safari 不支持先行和后行断言的导致的白屏问题 ([384499b](https://github.com/ibwei/vue3-base/commit/384499be25429152a10a277049b391eae969e856))
8+
* **thme:** 修改 ant-design-vue自定义主题在 build 之后无法覆盖成功的问题 ([29a591d](https://github.com/ibwei/vue3-base/commit/29a591d0cf17429cb528f485171be3b6ae4f7ff8))
9+
10+
11+
112
## [0.1.12](https://github.com/ibwei/vue3-base/compare/v0.1.10...v0.1.12) (2020-11-01)
213

314

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-base-type",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"description": "一个使用vue3+typescript 搭建的项目基础架构类型声明库",
55
"author": {
66
"name": "ibwei",

‎src/i18n/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function loadAtdLocales() {
5555
)
5656
files.keys().forEach(key => {
5757
const fileName = key.slice(2, key.lastIndexOf('.'))
58-
if (includes(TranslateTable, fileName[0])) {
59-
const localeKey = findKeyByValue(TranslateTable, fileName[0])
58+
if (includes(TranslateTable, fileName)) {
59+
const localeKey = findKeyByValue(TranslateTable, fileName)
6060
if (localeKey) {
6161
Locales[localeKey] = files(key).default
6262
}

0 commit comments

Comments
 (0)
Please sign in to comment.