zh_HK.js
3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* eslint-disable no-template-curly-in-string */
import Pagination from "rc-pagination/es/locale/zh_TW";
import DatePicker from '../date-picker/locale/zh_TW';
import TimePicker from '../time-picker/locale/zh_TW';
import Calendar from '../calendar/locale/zh_TW';
var typeTemplate = '${label}不是一個有效的${type}';
var localeValues = {
locale: 'zh-hk',
Pagination: Pagination,
DatePicker: DatePicker,
TimePicker: TimePicker,
Calendar: Calendar,
global: {
placeholder: '請選擇'
},
Table: {
filterTitle: '篩選器',
filterConfirm: '確定',
filterReset: '重置',
filterEmptyText: '無篩選項',
selectAll: '全部選取',
selectInvert: '反向選取',
selectionAll: '全選所有',
sortTitle: '排序',
expand: '展開行',
collapse: '關閉行',
triggerDesc: '點擊降序',
triggerAsc: '點擊升序',
cancelSort: '取消排序'
},
Modal: {
okText: '確定',
cancelText: '取消',
justOkText: '知道了'
},
Popconfirm: {
okText: '確定',
cancelText: '取消'
},
Transfer: {
searchPlaceholder: '搜尋資料',
itemUnit: '項目',
itemsUnit: '項目'
},
Upload: {
uploading: '正在上傳...',
removeFile: '刪除檔案',
uploadError: '上傳失敗',
previewFile: '檔案預覽',
downloadFile: '下载文件'
},
Empty: {
description: '無此資料'
},
Icon: {
icon: '圖標'
},
Text: {
edit: '編輯',
copy: '複製',
copied: '複製成功',
expand: '展開'
},
PageHeader: {
back: '返回'
},
Form: {
defaultValidateMessages: {
"default": '字段驗證錯誤${label}',
required: '請輸入${label}',
"enum": '${label}必須是其中一個[${enum}]',
whitespace: '${label}不能為空字符',
date: {
format: '${label}日期格式無效',
parse: '${label}不能轉換為日期',
invalid: '${label}是一個無效日期'
},
types: {
string: typeTemplate,
method: typeTemplate,
array: typeTemplate,
object: typeTemplate,
number: typeTemplate,
date: typeTemplate,
"boolean": typeTemplate,
integer: typeTemplate,
"float": typeTemplate,
regexp: typeTemplate,
email: typeTemplate,
url: typeTemplate,
hex: typeTemplate
},
string: {
len: '${label}須為${len}個字符',
min: '${label}最少${min}個字符',
max: '${label}最多${max}個字符',
range: '${label}須在${min}-${max}字符之間'
},
number: {
len: '${label}必須等於${len}',
min: '${label}最小值為${min}',
max: '${label}最大值為${max}',
range: '${label}須在${min}-${max}之間'
},
array: {
len: '須為${len}個${label}',
min: '最少${min}個${label}',
max: '最多${max}個${label}',
range: '${label}數量須在${min}-${max}之間'
},
pattern: {
mismatch: '${label}與模式不匹配${pattern}'
}
}
}
};
export default localeValues;