@hi-ui/hiui 4.0.0-beta.93 → 4.0.0
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/lib/cjs/index.js +8 -18
- package/lib/cjs/ui/locale-context/lib/esm/LocaleContext.js +68 -0
- package/lib/cjs/ui/locale-context/lib/esm/LocaleProvider.js +84 -0
- package/lib/cjs/ui/locale-context/lib/esm/locale/en-US.js +193 -0
- package/lib/cjs/ui/locale-context/lib/esm/locale/index.js +41 -0
- package/lib/cjs/ui/locale-context/lib/esm/locale/zh-CN.js +197 -0
- package/lib/cjs/ui/locale-context/lib/esm/locale/zh-HK.js +197 -0
- package/lib/cjs/ui/locale-context/lib/esm/locale/zh-TW.js +197 -0
- package/lib/cjs/ui/locale-context/lib/esm/types.js +32 -0
- package/lib/cjs/utils/array-utils/lib/esm/index.js +37 -0
- package/lib/cjs/utils/env/lib/esm/index.js +53 -0
- package/lib/cjs/utils/object-utils/lib/esm/index.js +61 -0
- package/lib/cjs/utils/type-assertion/lib/esm/index.js +32 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/ui/locale-context/lib/esm/LocaleContext.js +55 -0
- package/lib/esm/ui/locale-context/lib/esm/LocaleProvider.js +61 -0
- package/lib/esm/ui/locale-context/lib/esm/locale/en-US.js +188 -0
- package/lib/esm/ui/locale-context/lib/esm/locale/index.js +31 -0
- package/lib/esm/ui/locale-context/lib/esm/locale/zh-CN.js +192 -0
- package/lib/esm/ui/locale-context/lib/esm/locale/zh-HK.js +192 -0
- package/lib/esm/ui/locale-context/lib/esm/locale/zh-TW.js +192 -0
- package/lib/esm/ui/locale-context/lib/esm/types.js +27 -0
- package/lib/esm/utils/array-utils/lib/esm/index.js +30 -0
- package/lib/esm/utils/env/lib/esm/index.js +47 -0
- package/lib/esm/utils/object-utils/lib/esm/index.js +53 -0
- package/lib/esm/utils/type-assertion/lib/esm/index.js +24 -0
- package/lib/types/index.d.ts +2 -2
- package/package.json +68 -66
@@ -0,0 +1,61 @@
|
|
1
|
+
/** @LICENSE
|
2
|
+
* @hi-ui/hiui
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
|
4
|
+
*
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
import _typeof from '@babel/runtime/helpers/esm/typeof';
|
11
|
+
import React, { useMemo } from 'react';
|
12
|
+
import { invariant, __DEV__ } from '../../../../utils/env/lib/esm/index.js';
|
13
|
+
import { getLanguage, LocaleContext } from './LocaleContext.js';
|
14
|
+
import localeMap from './locale/index.js';
|
15
|
+
var DEFAULT_LOCALE = 'zh-CN'; // 自定义语言包注册表
|
16
|
+
|
17
|
+
var USER_LANGUAGES_TABLES = {};
|
18
|
+
/**
|
19
|
+
* TODO: What is LocaleContext
|
20
|
+
*/
|
21
|
+
|
22
|
+
var LocaleProvider = function LocaleProvider(_ref) {
|
23
|
+
var children = _ref.children,
|
24
|
+
_ref$locale = _ref.locale,
|
25
|
+
locale = _ref$locale === void 0 ? DEFAULT_LOCALE : _ref$locale,
|
26
|
+
languages = _ref.languages;
|
27
|
+
var get = useMemo(function () {
|
28
|
+
var languageData = _typeof(languages) === 'object' ? languages : USER_LANGUAGES_TABLES[locale] || localeMap[locale];
|
29
|
+
|
30
|
+
if (!languageData) {
|
31
|
+
invariant(false, "Will use " + DEFAULT_LOCALE + " as default locale because of the " + locale + " language package is missing.");
|
32
|
+
languageData = localeMap[DEFAULT_LOCALE];
|
33
|
+
}
|
34
|
+
|
35
|
+
return getLanguage(languageData);
|
36
|
+
}, [locale, languages]);
|
37
|
+
var providedValue = useMemo(function () {
|
38
|
+
return Object.assign(Object.assign({}, localeMap[locale]), {
|
39
|
+
get: get,
|
40
|
+
locale: locale
|
41
|
+
});
|
42
|
+
}, [locale, get]);
|
43
|
+
return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
|
44
|
+
value: providedValue
|
45
|
+
}, children);
|
46
|
+
};
|
47
|
+
|
48
|
+
if (__DEV__) {
|
49
|
+
LocaleProvider.displayName = 'LocaleProvider';
|
50
|
+
}
|
51
|
+
|
52
|
+
var extendsLanguage = function extendsLanguage(locale, languages) {
|
53
|
+
if (!languages) {
|
54
|
+
delete USER_LANGUAGES_TABLES[locale];
|
55
|
+
} else {
|
56
|
+
USER_LANGUAGES_TABLES[locale] = languages;
|
57
|
+
}
|
58
|
+
};
|
59
|
+
|
60
|
+
LocaleProvider["extends"] = extendsLanguage;
|
61
|
+
export { LocaleProvider };
|
@@ -0,0 +1,188 @@
|
|
1
|
+
/** @LICENSE
|
2
|
+
* @hi-ui/hiui
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
|
4
|
+
*
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
/** @LICENSE
|
12
|
+
* @hi-ui/locale-context
|
13
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
|
14
|
+
*
|
15
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/
|
20
|
+
var enUS = {
|
21
|
+
timePicker: {
|
22
|
+
ok: 'OK',
|
23
|
+
to: '-',
|
24
|
+
now: 'Now'
|
25
|
+
},
|
26
|
+
datePicker: {
|
27
|
+
ok: 'OK',
|
28
|
+
to: '-',
|
29
|
+
placeholder: ['Select Date'],
|
30
|
+
placeholderTimePeriod: ['Select Time'],
|
31
|
+
dateChoose: 'Select Date',
|
32
|
+
timeChoose: 'Select Time',
|
33
|
+
undefinedType: 'undefined type',
|
34
|
+
lastWeek: 'Nearly week',
|
35
|
+
lastMonth: 'Nearly month',
|
36
|
+
lastThreeMonth: 'Nearly three months',
|
37
|
+
lastYear: 'Nearly year',
|
38
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
39
|
+
monthShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
40
|
+
week: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
41
|
+
placeholders: {
|
42
|
+
date: ['Select Date'],
|
43
|
+
month: ['Select Month'],
|
44
|
+
year: ['Select Year'],
|
45
|
+
time: ['Select Time'],
|
46
|
+
daterange: ['Select Start Date', 'Select End Date'],
|
47
|
+
week: ['Select Week'],
|
48
|
+
weekrange: ['Select Start Week', 'Select End Week'],
|
49
|
+
timeperiod: ['Select Start Date Time', 'Select Start End Time']
|
50
|
+
},
|
51
|
+
timePeriod: 'Period',
|
52
|
+
hours: 'H',
|
53
|
+
minutes: 'M',
|
54
|
+
seconds: 'S',
|
55
|
+
weekRange: '{{year}}-W{{week}}'
|
56
|
+
},
|
57
|
+
pagination: {
|
58
|
+
total: ['Total', 'items'],
|
59
|
+
simple: ['The', 'page', '', 'pages', 'items'],
|
60
|
+
item: '',
|
61
|
+
itemPerPage: 'page',
|
62
|
+
"goto": 'Goto',
|
63
|
+
page: ''
|
64
|
+
},
|
65
|
+
cascader: {
|
66
|
+
placeholder: 'Please select',
|
67
|
+
noFoundTip: 'Not found'
|
68
|
+
},
|
69
|
+
checkCascader: {
|
70
|
+
placeholder: 'Please select',
|
71
|
+
noFoundTip: 'Not found'
|
72
|
+
},
|
73
|
+
select: {
|
74
|
+
placeholder: 'Please select',
|
75
|
+
emptyContent: 'Not found',
|
76
|
+
searchPlaceholder: 'Please search',
|
77
|
+
checkAll: 'Check all',
|
78
|
+
justSelected: 'Just Selected'
|
79
|
+
},
|
80
|
+
selectTree: {
|
81
|
+
back: 'Back',
|
82
|
+
search: 'search',
|
83
|
+
placeholder: 'Please select',
|
84
|
+
emptyContent: 'Not found'
|
85
|
+
},
|
86
|
+
search: {
|
87
|
+
searchEmptyResult: 'No serach results',
|
88
|
+
searchEmptyRecord: 'No serach record',
|
89
|
+
searchRecord: 'Serach record'
|
90
|
+
},
|
91
|
+
transfer: {
|
92
|
+
checkAll: 'Check all',
|
93
|
+
items: 'items',
|
94
|
+
searchPlaceholder: 'Please search',
|
95
|
+
emptyContent: 'No data',
|
96
|
+
limit: 'Reached limit, unable to add'
|
97
|
+
},
|
98
|
+
upload: {
|
99
|
+
buttonText: 'Upload',
|
100
|
+
uploadSuccess: 'Success',
|
101
|
+
cancel: 'Cancel',
|
102
|
+
"delete": 'Delete',
|
103
|
+
drag: 'Click or drag and drop file to upload',
|
104
|
+
dragTips: 'Please click or drag and drop file upload',
|
105
|
+
dragTipsLimited: 'The number has reached the upper limit',
|
106
|
+
preview: 'Preview',
|
107
|
+
modalTiptitle: 'Upload failed',
|
108
|
+
modalTiptxt: 'The upload file exceeds the specified upload file size',
|
109
|
+
modalBtn: 'I know',
|
110
|
+
modalTitle: 'Prompt'
|
111
|
+
},
|
112
|
+
modal: {
|
113
|
+
confirmText: 'OK',
|
114
|
+
cancelText: 'Cancel'
|
115
|
+
},
|
116
|
+
tabs: {
|
117
|
+
more: 'more'
|
118
|
+
},
|
119
|
+
timeline: {
|
120
|
+
expand: 'Expand',
|
121
|
+
collapse: 'Collapse'
|
122
|
+
},
|
123
|
+
form: {
|
124
|
+
colon: ':'
|
125
|
+
},
|
126
|
+
tree: {
|
127
|
+
addNode: 'Add Node',
|
128
|
+
addChildNode: 'Add Child Node',
|
129
|
+
edit: 'Edit Node',
|
130
|
+
del: 'Delete',
|
131
|
+
confirm: 'Confirm',
|
132
|
+
cancel: 'Cancel',
|
133
|
+
nodePlaceholder: 'Please enter the node name',
|
134
|
+
searchPlaceholder: 'Keyword search',
|
135
|
+
searchEmptyResult: 'No serach results',
|
136
|
+
modalTitle: 'Warning',
|
137
|
+
delTips: 'Deleting a node will delete all child nodes, are you sure to delete this node?'
|
138
|
+
},
|
139
|
+
table: {
|
140
|
+
emptyContent: 'No data',
|
141
|
+
confirm: 'Confirm',
|
142
|
+
reset: 'Reset',
|
143
|
+
ascend: 'Ascend',
|
144
|
+
descend: 'Descend',
|
145
|
+
highlight: 'Highlight',
|
146
|
+
freeze: 'Freeze',
|
147
|
+
total: 'Total',
|
148
|
+
average: 'Average',
|
149
|
+
fieldExplorer: 'Field Explorer'
|
150
|
+
},
|
151
|
+
watermark: {
|
152
|
+
content: 'Please do not gaiden'
|
153
|
+
},
|
154
|
+
emptyState: {
|
155
|
+
emptyContent: 'No data'
|
156
|
+
},
|
157
|
+
checkSelect: {
|
158
|
+
placeholder: 'Please select',
|
159
|
+
emptyContent: 'Not found',
|
160
|
+
searchPlaceholder: 'Please search',
|
161
|
+
checkAll: 'Check all',
|
162
|
+
justSelected: 'Just Selected'
|
163
|
+
},
|
164
|
+
treeSelect: {
|
165
|
+
placeholder: 'Please select'
|
166
|
+
},
|
167
|
+
checkTreeSelect: {
|
168
|
+
placeholder: 'Please select'
|
169
|
+
},
|
170
|
+
picker: {
|
171
|
+
placeholder: 'Please select',
|
172
|
+
emptyContent: 'No data',
|
173
|
+
noFoundTip: 'Not found',
|
174
|
+
searchPlaceholder: 'Please search',
|
175
|
+
loadingContent: 'loading data...'
|
176
|
+
},
|
177
|
+
zenMode: {
|
178
|
+
back: 'back'
|
179
|
+
},
|
180
|
+
popConfirm: {
|
181
|
+
confirmText: 'OK',
|
182
|
+
cancelText: 'Cancel'
|
183
|
+
},
|
184
|
+
tag: {
|
185
|
+
add: 'Add'
|
186
|
+
}
|
187
|
+
};
|
188
|
+
export { enUS as default };
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/** @LICENSE
|
2
|
+
* @hi-ui/hiui
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
|
4
|
+
*
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
import zhCN from './zh-CN.js';
|
11
|
+
import enUS from './en-US.js';
|
12
|
+
import zhHK from './zh-HK.js';
|
13
|
+
import zhTW from './zh-TW.js';
|
14
|
+
/** @LICENSE
|
15
|
+
* @hi-ui/locale-context
|
16
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
|
17
|
+
*
|
18
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
19
|
+
*
|
20
|
+
* This source code is licensed under the MIT license found in the
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
22
|
+
*/
|
23
|
+
|
24
|
+
var localeMap = {
|
25
|
+
'zh-CN': zhCN,
|
26
|
+
'zh-Hans': zhCN,
|
27
|
+
'en-US': enUS,
|
28
|
+
'zh-HK': zhHK,
|
29
|
+
'zh-TW': zhTW
|
30
|
+
};
|
31
|
+
export { localeMap as default };
|
@@ -0,0 +1,192 @@
|
|
1
|
+
/** @LICENSE
|
2
|
+
* @hi-ui/hiui
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
|
4
|
+
*
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
/** @LICENSE
|
12
|
+
* @hi-ui/locale-context
|
13
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
|
14
|
+
*
|
15
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/
|
20
|
+
var zhCN = {
|
21
|
+
timePicker: {
|
22
|
+
ok: '确认',
|
23
|
+
to: '-',
|
24
|
+
now: '此刻'
|
25
|
+
},
|
26
|
+
datePicker: {
|
27
|
+
ok: '确认',
|
28
|
+
to: '-',
|
29
|
+
placeholder: ['请选择日期'],
|
30
|
+
placeholderTimePeriod: ['请选择时间'],
|
31
|
+
dateChoose: '日期选择',
|
32
|
+
timeChoose: '时间选择',
|
33
|
+
undefinedType: '类型未定义',
|
34
|
+
lastWeek: '近一周',
|
35
|
+
lastMonth: '近一月',
|
36
|
+
lastThreeMonth: '近三月',
|
37
|
+
lastYear: '近一年',
|
38
|
+
month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
39
|
+
monthShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
40
|
+
week: ['日', '一', '二', '三', '四', '五', '六'],
|
41
|
+
placeholders: {
|
42
|
+
date: ['请选择日期'],
|
43
|
+
month: ['请选择月'],
|
44
|
+
year: ['请选择年'],
|
45
|
+
time: ['请选择时间'],
|
46
|
+
daterange: ['开始日期', '结束日期'],
|
47
|
+
week: ['请选择周'],
|
48
|
+
weekrange: ['开始周', '结束周'],
|
49
|
+
timeperiod: ['开始时间', '结束时间'],
|
50
|
+
timerange: ['请选择开始时间', '请选择结束时间']
|
51
|
+
},
|
52
|
+
year: '年',
|
53
|
+
timePeriod: '时间段',
|
54
|
+
hours: '时',
|
55
|
+
minutes: '分',
|
56
|
+
seconds: '秒',
|
57
|
+
weekRange: '{{year}}-W{{week}}'
|
58
|
+
},
|
59
|
+
pagination: {
|
60
|
+
total: ['共', '条'],
|
61
|
+
simple: ['第', '页', '共', '页', '条记录'],
|
62
|
+
item: '条',
|
63
|
+
itemPerPage: '页',
|
64
|
+
"goto": '前往',
|
65
|
+
page: '页'
|
66
|
+
},
|
67
|
+
timeline: {
|
68
|
+
expand: '展开',
|
69
|
+
collapse: '收起'
|
70
|
+
},
|
71
|
+
cascader: {
|
72
|
+
placeholder: '请选择',
|
73
|
+
noFoundTip: '无匹配数据',
|
74
|
+
emptyContent: '暂无数据'
|
75
|
+
},
|
76
|
+
checkCascader: {
|
77
|
+
placeholder: '请选择',
|
78
|
+
noFoundTip: '无匹配数据',
|
79
|
+
emptyContent: '暂无数据'
|
80
|
+
},
|
81
|
+
picker: {
|
82
|
+
placeholder: '请选择',
|
83
|
+
emptyContent: '暂无数据',
|
84
|
+
noFoundTip: '无匹配数据',
|
85
|
+
searchPlaceholder: '搜索',
|
86
|
+
loadingContent: '数据加载中...'
|
87
|
+
},
|
88
|
+
treeSelect: {
|
89
|
+
placeholder: '请选择'
|
90
|
+
},
|
91
|
+
checkTreeSelect: {
|
92
|
+
placeholder: '请选择'
|
93
|
+
},
|
94
|
+
select: {
|
95
|
+
placeholder: '请选择',
|
96
|
+
emptyContent: '无匹配数据',
|
97
|
+
searchPlaceholder: '搜索',
|
98
|
+
checkAll: '全选',
|
99
|
+
justSelected: '仅看已选'
|
100
|
+
},
|
101
|
+
checkSelect: {
|
102
|
+
placeholder: '请选择',
|
103
|
+
emptyContent: '无匹配数据',
|
104
|
+
searchPlaceholder: '搜索',
|
105
|
+
checkAll: '全选',
|
106
|
+
justSelected: '仅看已选'
|
107
|
+
},
|
108
|
+
selectTree: {
|
109
|
+
back: '返回',
|
110
|
+
search: '搜索',
|
111
|
+
placeholder: '请选择',
|
112
|
+
emptyContent: '无匹配数据'
|
113
|
+
},
|
114
|
+
search: {
|
115
|
+
searchEmptyResult: '未找到搜索结果',
|
116
|
+
searchEmptyRecord: '无搜索记录',
|
117
|
+
searchRecord: '搜索历史'
|
118
|
+
},
|
119
|
+
transfer: {
|
120
|
+
checkAll: '全选',
|
121
|
+
items: '项',
|
122
|
+
searchPlaceholder: '搜索',
|
123
|
+
emptyContent: '暂无数据',
|
124
|
+
limit: '数量达上限,无法添加'
|
125
|
+
},
|
126
|
+
upload: {
|
127
|
+
buttonText: '上传',
|
128
|
+
uploadSuccess: '上传成功',
|
129
|
+
cancel: '取消',
|
130
|
+
"delete": '删除',
|
131
|
+
drag: '点击或将文件拖拽至此上传',
|
132
|
+
dragTips: '请点击或拖拽文件上传',
|
133
|
+
dragTipsLimited: '数量已达上限',
|
134
|
+
preview: '预览',
|
135
|
+
modalTiptitle: '上传失败',
|
136
|
+
modalTiptxt: '该上传文件超过指定上传文件大小',
|
137
|
+
modalBtn: '我知道了',
|
138
|
+
modalTitle: '提示'
|
139
|
+
},
|
140
|
+
modal: {
|
141
|
+
confirmText: '确定',
|
142
|
+
cancelText: '取消'
|
143
|
+
},
|
144
|
+
tabs: {
|
145
|
+
more: '更多'
|
146
|
+
},
|
147
|
+
form: {
|
148
|
+
colon: ':'
|
149
|
+
},
|
150
|
+
tree: {
|
151
|
+
addNode: '添加节点',
|
152
|
+
addChildNode: '添加子节点',
|
153
|
+
edit: '编辑节点',
|
154
|
+
del: '删除',
|
155
|
+
confirm: '确认',
|
156
|
+
cancel: '取消',
|
157
|
+
nodePlaceholder: '请输入节点名称',
|
158
|
+
searchPlaceholder: '关键词搜索',
|
159
|
+
searchEmptyResult: '未找到搜索结果',
|
160
|
+
modalTitle: '提示',
|
161
|
+
delTips: '删除节点将删除所有子节点,确定删除吗?'
|
162
|
+
},
|
163
|
+
table: {
|
164
|
+
emptyContent: '暂无数据',
|
165
|
+
confirm: '确定',
|
166
|
+
reset: '重置',
|
167
|
+
ascend: '升序',
|
168
|
+
descend: '降序',
|
169
|
+
highlight: '高亮',
|
170
|
+
freeze: '冻结',
|
171
|
+
total: '合计',
|
172
|
+
average: '平均值',
|
173
|
+
fieldExplorer: '字段管理'
|
174
|
+
},
|
175
|
+
watermark: {
|
176
|
+
content: '请勿外传'
|
177
|
+
},
|
178
|
+
emptyState: {
|
179
|
+
emptyContent: '暂无数据'
|
180
|
+
},
|
181
|
+
zenMode: {
|
182
|
+
back: '返回'
|
183
|
+
},
|
184
|
+
popConfirm: {
|
185
|
+
confirmText: '确定',
|
186
|
+
cancelText: '取消'
|
187
|
+
},
|
188
|
+
tag: {
|
189
|
+
add: '添加'
|
190
|
+
}
|
191
|
+
};
|
192
|
+
export { zhCN as default };
|
@@ -0,0 +1,192 @@
|
|
1
|
+
/** @LICENSE
|
2
|
+
* @hi-ui/hiui
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
|
4
|
+
*
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
/** @LICENSE
|
12
|
+
* @hi-ui/locale-context
|
13
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
|
14
|
+
*
|
15
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/
|
20
|
+
var zhHK = {
|
21
|
+
timePicker: {
|
22
|
+
ok: '確認',
|
23
|
+
to: '-',
|
24
|
+
now: '此刻'
|
25
|
+
},
|
26
|
+
datePicker: {
|
27
|
+
ok: '確認',
|
28
|
+
to: '-',
|
29
|
+
placeholder: ['請選擇日期'],
|
30
|
+
placeholderTimePeriod: ['請選擇時間'],
|
31
|
+
dateChoose: '日期選擇',
|
32
|
+
timeChoose: '時間選擇',
|
33
|
+
undefinedType: '類型未定義',
|
34
|
+
lastWeek: '近壹周',
|
35
|
+
lastMonth: '近壹月',
|
36
|
+
lastThreeMonth: '近三月',
|
37
|
+
lastYear: '近壹年',
|
38
|
+
month: ['壹月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十壹月', '十二月'],
|
39
|
+
monthShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
40
|
+
week: ['日', '壹', '二', '三', '四', '五', '六'],
|
41
|
+
placeholders: {
|
42
|
+
date: ['請選擇日期'],
|
43
|
+
month: ['請選擇月'],
|
44
|
+
year: ['請選擇年'],
|
45
|
+
time: ['請選擇時間'],
|
46
|
+
daterange: ['開始日期', '結束日期'],
|
47
|
+
week: ['請選擇周'],
|
48
|
+
weekrange: ['開始周', '結束周'],
|
49
|
+
timeperiod: ['開始時間', '結束時間'],
|
50
|
+
timerange: ['請選擇開始時間', '請選擇結束時間']
|
51
|
+
},
|
52
|
+
year: '年',
|
53
|
+
timePeriod: '時間段',
|
54
|
+
hours: '時',
|
55
|
+
minutes: '分',
|
56
|
+
seconds: '秒',
|
57
|
+
weekRange: '{{year}}-W{{week}}'
|
58
|
+
},
|
59
|
+
pagination: {
|
60
|
+
total: ['共', '條'],
|
61
|
+
simple: ['第', '頁', '共', '頁', '條記錄'],
|
62
|
+
item: '條',
|
63
|
+
itemPerPage: '頁',
|
64
|
+
"goto": '前往',
|
65
|
+
page: '頁'
|
66
|
+
},
|
67
|
+
cascader: {
|
68
|
+
placeholder: '請選擇',
|
69
|
+
noFoundTip: '無匹配數據',
|
70
|
+
emptyContent: '暫無數據'
|
71
|
+
},
|
72
|
+
checkCascader: {
|
73
|
+
placeholder: '請選擇',
|
74
|
+
noFoundTip: '無匹配數據',
|
75
|
+
emptyContent: '暫無數據'
|
76
|
+
},
|
77
|
+
picker: {
|
78
|
+
placeholder: '請選擇',
|
79
|
+
emptyContent: '暫無數據',
|
80
|
+
noFoundTip: '無匹配數據',
|
81
|
+
searchPlaceholder: '搜索',
|
82
|
+
loadingContent: '數據加載中...'
|
83
|
+
},
|
84
|
+
treeSelect: {
|
85
|
+
placeholder: '請選擇'
|
86
|
+
},
|
87
|
+
checkTreeSelect: {
|
88
|
+
placeholder: '請選擇'
|
89
|
+
},
|
90
|
+
select: {
|
91
|
+
placeholder: '請選擇',
|
92
|
+
emptyContent: '無匹配數據',
|
93
|
+
searchPlaceholder: '搜索',
|
94
|
+
checkAll: '全選',
|
95
|
+
justSelected: '僅看已選'
|
96
|
+
},
|
97
|
+
checkSelect: {
|
98
|
+
placeholder: '請選擇',
|
99
|
+
emptyContent: '無匹配數據',
|
100
|
+
searchPlaceholder: '搜索',
|
101
|
+
checkAll: '全選',
|
102
|
+
justSelected: '僅看已選'
|
103
|
+
},
|
104
|
+
selectTree: {
|
105
|
+
back: '返回',
|
106
|
+
search: '搜索',
|
107
|
+
placeholder: '請選擇',
|
108
|
+
emptyContent: '無匹配數據'
|
109
|
+
},
|
110
|
+
search: {
|
111
|
+
searchEmptyResult: '未找到搜索結果',
|
112
|
+
searchEmptyRecord: '無搜索記錄',
|
113
|
+
searchRecord: '搜索歷史'
|
114
|
+
},
|
115
|
+
transfer: {
|
116
|
+
checkAll: '全選',
|
117
|
+
items: '項',
|
118
|
+
searchPlaceholder: '搜索',
|
119
|
+
emptyContent: '暫無數據',
|
120
|
+
limit: '數量達上限,無法添加'
|
121
|
+
},
|
122
|
+
upload: {
|
123
|
+
buttonText: '上傳',
|
124
|
+
uploadSuccess: '上傳成功',
|
125
|
+
cancel: '取消',
|
126
|
+
"delete": '刪除',
|
127
|
+
drag: '點擊或将文件拖拽至此上傳',
|
128
|
+
dragTips: '請點擊或拖拽文件上傳',
|
129
|
+
dragTipsLimited: '數量已達上限',
|
130
|
+
preview: '預覽',
|
131
|
+
modalTiptitle: '上傳失敗',
|
132
|
+
modalTiptxt: '該上傳文件超過指定上傳文件大小',
|
133
|
+
modalBtn: '我知道了',
|
134
|
+
modalTitle: '提示'
|
135
|
+
},
|
136
|
+
modal: {
|
137
|
+
confirmText: '確定',
|
138
|
+
cancelText: '取消'
|
139
|
+
},
|
140
|
+
tabs: {
|
141
|
+
more: '更多'
|
142
|
+
},
|
143
|
+
timeline: {
|
144
|
+
expand: '展開',
|
145
|
+
collapse: '收起'
|
146
|
+
},
|
147
|
+
form: {
|
148
|
+
colon: ':'
|
149
|
+
},
|
150
|
+
tree: {
|
151
|
+
addNode: '添加節點',
|
152
|
+
addChildNode: '添加子節點',
|
153
|
+
edit: '編輯節點',
|
154
|
+
del: '刪除',
|
155
|
+
confirm: '確認',
|
156
|
+
cancel: '取消',
|
157
|
+
nodePlaceholder: '請輸入節點名稱',
|
158
|
+
searchPlaceholder: '關鍵詞搜索',
|
159
|
+
searchEmptyResult: '未找到搜索結果',
|
160
|
+
modalTitle: '提示',
|
161
|
+
delTips: '刪除節點將刪除所有子節點,確定刪除嗎?'
|
162
|
+
},
|
163
|
+
table: {
|
164
|
+
emptyContent: '暫無數據',
|
165
|
+
confirm: '確定',
|
166
|
+
reset: '重置',
|
167
|
+
ascend: '升序',
|
168
|
+
descend: '降序',
|
169
|
+
highlight: '高亮',
|
170
|
+
freeze: '凍結',
|
171
|
+
total: '合計',
|
172
|
+
average: '平均值',
|
173
|
+
fieldExplorer: '字段管理'
|
174
|
+
},
|
175
|
+
watermark: {
|
176
|
+
content: '請勿外傳'
|
177
|
+
},
|
178
|
+
emptyState: {
|
179
|
+
emptyContent: '暫無數據'
|
180
|
+
},
|
181
|
+
zenMode: {
|
182
|
+
back: '返回'
|
183
|
+
},
|
184
|
+
popConfirm: {
|
185
|
+
confirmText: '確定',
|
186
|
+
cancelText: '取消'
|
187
|
+
},
|
188
|
+
tag: {
|
189
|
+
add: '添加'
|
190
|
+
}
|
191
|
+
};
|
192
|
+
export { zhHK as default };
|