-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
zhHK.ts
183 lines (157 loc) · 6.1 KB
/
zhHK.ts
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
import { zhHK as zhHKCore } from '@mui/material/locale';
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization } from '../utils/getGridLocalization';
const zhHKGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: '沒有行',
noResultsOverlayLabel: '未找到結果。',
// Density selector toolbar button text
toolbarDensity: '密度',
toolbarDensityLabel: '密度',
toolbarDensityCompact: '袖珍的',
toolbarDensityStandard: '標準',
toolbarDensityComfortable: '舒服的',
// Columns selector toolbar button text
toolbarColumns: '列',
toolbarColumnsLabel: '選擇列',
// Filters toolbar button text
toolbarFilters: '過濾器',
toolbarFiltersLabel: '顯示過濾器',
toolbarFiltersTooltipHide: '隱藏過濾器',
toolbarFiltersTooltipShow: '顯示過濾器',
toolbarFiltersTooltipActive: (count) =>
count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: '搜尋…',
toolbarQuickFilterLabel: '搜尋',
toolbarQuickFilterDeleteIconLabel: '清除',
// Export selector toolbar button text
toolbarExport: '出口',
toolbarExportLabel: '出口',
toolbarExportCSV: '下載為 CSV',
toolbarExportPrint: '列印',
toolbarExportExcel: '下載為 Excel',
// Columns management text
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',
// Filter panel text
filterPanelAddFilter: '新增過濾器',
filterPanelRemoveAll: '移除所有',
filterPanelDeleteIconLabel: '刪除',
filterPanelLogicOperator: '邏輯運算符',
filterPanelOperator: '操作員',
filterPanelOperatorAnd: '和',
filterPanelOperatorOr: '或者',
filterPanelColumns: '列',
filterPanelInputLabel: '價值',
filterPanelInputPlaceholder: '過濾值',
// Filter operators text
filterOperatorContains: '包含',
// filterOperatorDoesNotContain: 'does not contain',
filterOperatorEquals: '等於',
// filterOperatorDoesNotEqual: 'does not equal',
filterOperatorStartsWith: '以。。開始',
filterOperatorEndsWith: '以。。結束',
filterOperatorIs: '是',
filterOperatorNot: '不是',
filterOperatorAfter: '是在之後',
filterOperatorOnOrAfter: '是在或之後',
filterOperatorBefore: '是在之前',
filterOperatorOnOrBefore: '是在或之前',
filterOperatorIsEmpty: '是空的',
filterOperatorIsNotEmpty: '不為空',
filterOperatorIsAnyOf: '是以下任一個',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: '包含',
// headerFilterOperatorDoesNotContain: 'Does not contain',
headerFilterOperatorEquals: '等於',
// headerFilterOperatorDoesNotEqual: 'Does not equal',
headerFilterOperatorStartsWith: '以。。開始',
headerFilterOperatorEndsWith: '以。。結束',
headerFilterOperatorIs: '是',
headerFilterOperatorNot: '不是',
headerFilterOperatorAfter: '是在之後',
headerFilterOperatorOnOrAfter: '是在或之後',
headerFilterOperatorBefore: '是之前',
headerFilterOperatorOnOrBefore: '是在或之前',
headerFilterOperatorIsEmpty: '是空的',
headerFilterOperatorIsNotEmpty: '不為空',
headerFilterOperatorIsAnyOf: '是以下任一個',
'headerFilterOperator=': '等於',
'headerFilterOperator!=': '不等於',
'headerFilterOperator>': '比...更棒',
'headerFilterOperator>=': '大於或等於',
'headerFilterOperator<': '少於',
'headerFilterOperator<=': '小於或等於',
// Filter values text
filterValueAny: '任何',
filterValueTrue: '真的',
filterValueFalse: '錯誤的',
// Column menu text
columnMenuLabel: '選單',
columnMenuShowColumns: '顯示欄目',
columnMenuManageColumns: '管理欄目',
columnMenuFilter: '篩選',
columnMenuHideColumn: '隱藏列',
columnMenuUnsort: '取消排序',
columnMenuSortAsc: '按升序排序',
columnMenuSortDesc: '按降序排序',
// Column header text
columnHeaderFiltersTooltipActive: (count) =>
count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
columnHeaderFiltersLabel: '顯示過濾器',
columnHeaderSortIconLabel: '種類',
// Rows selected footer text
footerRowSelected: (count) =>
count !== 1 ? `已選擇 ${count.toLocaleString()} 行` : `已選擇 ${count.toLocaleString()} 行`,
// Total row amount footer text
footerTotalRows: '總行數:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) =>
`${totalCount.toLocaleString()} 的 ${visibleCount.toLocaleString()}`,
// Checkbox selection text
checkboxSelectionHeaderName: '複選框選擇',
checkboxSelectionSelectAllRows: '選擇所有行',
checkboxSelectionUnselectAllRows: '取消選擇所有行',
checkboxSelectionSelectRow: '選擇行',
checkboxSelectionUnselectRow: '取消選擇行',
// Boolean cell text
booleanCellTrueLabel: '是的',
booleanCellFalseLabel: '不',
// Actions cell more text
actionsCellMore: '更多的',
// Column pinning text
pinToLeft: '固定到左側',
pinToRight: '固定到右側',
unpin: '取消固定',
// Tree Data
treeDataGroupingHeaderName: 'Group',
treeDataExpand: '看看孩子們',
treeDataCollapse: '隱藏孩子',
// Grouping columns
groupingColumnHeaderName: '團體',
groupColumn: (name) => `按 ${name} 分組`,
unGroupColumn: (name) => `停止以 ${name} 分組`,
// Master/detail
detailPanelToggle: '詳細資訊面板切換',
expandDetailPanel: '擴張',
collapseDetailPanel: '坍塌',
// Row reordering text
rowReorderingHeaderName: '行重新排序',
// Aggregation
aggregationMenuItemHeader: '聚合',
aggregationFunctionLabelSum: '和',
aggregationFunctionLabelAvg: '平均',
aggregationFunctionLabelMin: '分分鐘',
aggregationFunctionLabelMax: '最大限度',
aggregationFunctionLabelSize: '尺寸',
};
export const zhHK = getGridLocalization(zhHKGrid, zhHKCore);