-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
localeTextConstants.ts
179 lines (153 loc) · 5.63 KB
/
localeTextConstants.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
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
export const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText = {
// Root
noRowsLabel: 'No rows',
noResultsOverlayLabel: 'No results found.',
// Density selector toolbar button text
toolbarDensity: 'Density',
toolbarDensityLabel: 'Density',
toolbarDensityCompact: 'Compact',
toolbarDensityStandard: 'Standard',
toolbarDensityComfortable: 'Comfortable',
// Columns selector toolbar button text
toolbarColumns: 'Columns',
toolbarColumnsLabel: 'Select columns',
// Filters toolbar button text
toolbarFilters: 'Filters',
toolbarFiltersLabel: 'Show filters',
toolbarFiltersTooltipHide: 'Hide filters',
toolbarFiltersTooltipShow: 'Show filters',
toolbarFiltersTooltipActive: (count) =>
count !== 1 ? `${count} active filters` : `${count} active filter`,
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: 'Search…',
toolbarQuickFilterLabel: 'Search',
toolbarQuickFilterDeleteIconLabel: 'Clear',
// Export selector toolbar button text
toolbarExport: 'Export',
toolbarExportLabel: 'Export',
toolbarExportCSV: 'Download as CSV',
toolbarExportPrint: 'Print',
toolbarExportExcel: 'Download as Excel',
// Columns management text
columnsManagementSearchTitle: 'Search',
columnsManagementNoColumns: 'No columns',
columnsManagementShowHideAllText: 'Show/Hide All',
// Filter panel text
filterPanelAddFilter: 'Add filter',
filterPanelRemoveAll: 'Remove all',
filterPanelDeleteIconLabel: 'Delete',
filterPanelLogicOperator: 'Logic operator',
filterPanelOperator: 'Operator',
filterPanelOperatorAnd: 'And',
filterPanelOperatorOr: 'Or',
filterPanelColumns: 'Columns',
filterPanelInputLabel: 'Value',
filterPanelInputPlaceholder: 'Filter value',
// Filter operators text
filterOperatorContains: 'contains',
filterOperatorEquals: 'equals',
filterOperatorStartsWith: 'starts with',
filterOperatorEndsWith: 'ends with',
filterOperatorIs: 'is',
filterOperatorNot: 'is not',
filterOperatorAfter: 'is after',
filterOperatorOnOrAfter: 'is on or after',
filterOperatorBefore: 'is before',
filterOperatorOnOrBefore: 'is on or before',
filterOperatorIsEmpty: 'is empty',
filterOperatorIsNotEmpty: 'is not empty',
filterOperatorIsAnyOf: 'is any of',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'Contains',
headerFilterOperatorEquals: 'Equals',
headerFilterOperatorStartsWith: 'Starts with',
headerFilterOperatorEndsWith: 'Ends with',
headerFilterOperatorIs: 'Is',
headerFilterOperatorNot: 'Is not',
headerFilterOperatorAfter: 'Is after',
headerFilterOperatorOnOrAfter: 'Is on or after',
headerFilterOperatorBefore: 'Is before',
headerFilterOperatorOnOrBefore: 'Is on or before',
headerFilterOperatorIsEmpty: 'Is empty',
headerFilterOperatorIsNotEmpty: 'Is not empty',
headerFilterOperatorIsAnyOf: 'Is any of',
'headerFilterOperator=': 'Equals',
'headerFilterOperator!=': 'Not equals',
'headerFilterOperator>': 'Greater than',
'headerFilterOperator>=': 'Greater than or equal to',
'headerFilterOperator<': 'Less than',
'headerFilterOperator<=': 'Less than or equal to',
// Filter values text
filterValueAny: 'any',
filterValueTrue: 'true',
filterValueFalse: 'false',
// Column menu text
columnMenuLabel: 'Menu',
columnMenuShowColumns: 'Show columns',
columnMenuManageColumns: 'Manage columns',
columnMenuFilter: 'Filter',
columnMenuHideColumn: 'Hide column',
columnMenuUnsort: 'Unsort',
columnMenuSortAsc: 'Sort by ASC',
columnMenuSortDesc: 'Sort by DESC',
// Column header text
columnHeaderFiltersTooltipActive: (count) =>
count !== 1 ? `${count} active filters` : `${count} active filter`,
columnHeaderFiltersLabel: 'Show filters',
columnHeaderSortIconLabel: 'Sort',
// Rows selected footer text
footerRowSelected: (count) =>
count !== 1
? `${count.toLocaleString()} rows selected`
: `${count.toLocaleString()} row selected`,
// Total row amount footer text
footerTotalRows: 'Total Rows:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) =>
`${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
// Checkbox selection text
checkboxSelectionHeaderName: 'Checkbox selection',
checkboxSelectionSelectAllRows: 'Select all rows',
checkboxSelectionUnselectAllRows: 'Unselect all rows',
checkboxSelectionSelectRow: 'Select row',
checkboxSelectionUnselectRow: 'Unselect row',
// Boolean cell text
booleanCellTrueLabel: 'yes',
booleanCellFalseLabel: 'no',
// Actions cell more text
actionsCellMore: 'more',
// Column pinning text
pinToLeft: 'Pin to left',
pinToRight: 'Pin to right',
unpin: 'Unpin',
// Tree Data
treeDataGroupingHeaderName: 'Group',
treeDataExpand: 'see children',
treeDataCollapse: 'hide children',
// Grouping columns
groupingColumnHeaderName: 'Group',
groupColumn: (name) => `Group by ${name}`,
unGroupColumn: (name) => `Stop grouping by ${name}`,
// Master/detail
detailPanelToggle: 'Detail panel toggle',
expandDetailPanel: 'Expand',
collapseDetailPanel: 'Collapse',
// Used core components translation keys
MuiTablePagination: {},
// Row reordering text
rowReorderingHeaderName: 'Row reordering',
// Aggregation
aggregationMenuItemHeader: 'Aggregation',
aggregationFunctionLabelSum: 'sum',
aggregationFunctionLabelAvg: 'avg',
aggregationFunctionLabelMin: 'min',
aggregationFunctionLabelMax: 'max',
aggregationFunctionLabelSize: 'size',
};