-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
zhTW.ts
180 lines (154 loc) · 5.86 KB
/
zhTW.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
import { zhTW as zhTWCore } from '@mui/material/locale';
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization, Localization } from '../utils/getGridLocalization';
const zhTWGrid: 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} 個篩選器`,
// 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} 個篩選器`,
columnHeaderFiltersLabel: '顯示篩選器',
columnHeaderSortIconLabel: '排序',
// Rows selected footer text
footerRowSelected: (count) => `已選取 ${count.toLocaleString()} 個`,
// Total row amount footer text
footerTotalRows: '總數:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) =>
`${visibleCount.toLocaleString()} / ${totalCount.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: '群組',
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 zhTW: Localization = getGridLocalization(zhTWGrid, zhTWCore);