n20-common-lib 2.6.71 → 2.6.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/.DS_Store +0 -0
- package/src/assets/iconFont5/demo_index.html +256 -3
- package/src/assets/iconFont5/iconfont.css +47 -3
- package/src/assets/iconFont5/iconfont.js +1 -1
- package/src/assets/iconFont5/iconfont.json +77 -0
- package/src/assets/iconFont5/iconfont.ttf +0 -0
- package/src/assets/iconFont5/iconfont.woff +0 -0
- package/src/assets/iconFont5/iconfont.woff2 +0 -0
- package/src/components/ApprovalButtons/index.vue +0 -1
- package/src/components/Layout/HeaderWrap/indexN.vue +6 -0
- package/src/components/LoginTemporary/indexN.vue +8 -4
- package/src/i18n.json +1299 -651
- package/src/utils/i18n/index.js +4 -1
- package/style/fonts/iconfont.1676b4d9.woff2 +0 -0
- package/style/fonts/{iconfont.72eacf7d.ttf → iconfont.2be34155.ttf} +0 -0
- package/style/fonts/iconfont.ac432622.woff +0 -0
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/fonts/iconfont.1676b4d9.woff2 +0 -0
- package/theme/fonts/iconfont.2be34155.ttf +0 -0
- package/theme/fonts/iconfont.ac432622.woff +0 -0
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
- package/style/fonts/iconfont.384a1d95.woff +0 -0
- package/style/fonts/iconfont.72a1a997.woff2 +0 -0
package/src/utils/i18n/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import locale from 'element-ui/lib/locale'
|
|
2
2
|
import langEn from 'element-ui/lib/locale/lang/en'
|
|
3
|
+
import langTh from 'element-ui/lib/locale/lang/th'
|
|
3
4
|
import langTw from 'element-ui/lib/locale/lang/zh-TW'
|
|
4
5
|
|
|
6
|
+
import i18n_map_corelib from '../../i18n.json'
|
|
5
7
|
import zhHk from './cn2hk.json' // 简体繁体映射
|
|
6
8
|
// 语言枚举
|
|
7
9
|
// const langEm = { 中文: 'zh', 中文简体: 'zh-cn', 中文繁体: 'zh-hk', 英文: 'en', 德文: 'de', 法文: 'fr' }
|
|
8
10
|
|
|
9
11
|
let pageLang = window.localStorage.getItem('pageLang') // 当前页面的语言
|
|
10
12
|
let $i18n_map_root = undefined // 全局的国际化
|
|
11
|
-
import i18n_map_corelib from '../../i18n.json'
|
|
12
13
|
|
|
13
14
|
export function $l(zh, map = {}, arg) {
|
|
14
15
|
let val = ''
|
|
@@ -48,6 +49,8 @@ directive.install = (Vue, map = {}) => {
|
|
|
48
49
|
locale.use(langEn)
|
|
49
50
|
} else if (pageLang === 'zh-hk') {
|
|
50
51
|
locale.use(langTw)
|
|
52
|
+
} else if (pageLang === 'th') {
|
|
53
|
+
locale.use(langTh)
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
$i18n_map_root = map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|