/
skSK.ts
207 lines (181 loc) · 6.71 KB
/
skSK.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
import { skSK as skSKCore } from '@mui/material/locale';
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization, Localization } from '../utils/getGridLocalization';
const skSKGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: 'Žiadne záznamy',
noResultsOverlayLabel: 'Nenašli sa žadne výsledky.',
// Density selector toolbar button text
toolbarDensity: 'Hustota',
toolbarDensityLabel: 'Hustota',
toolbarDensityCompact: 'Kompaktná',
toolbarDensityStandard: 'Štandartná',
toolbarDensityComfortable: 'Komfortná',
// Columns selector toolbar button text
toolbarColumns: 'Stĺpce',
toolbarColumnsLabel: 'Vybrať stĺpce',
// Filters toolbar button text
toolbarFilters: 'Filtre',
toolbarFiltersLabel: 'Zobraziť filtre',
toolbarFiltersTooltipHide: 'Skryť filtre ',
toolbarFiltersTooltipShow: 'Zobraziť filtre',
toolbarFiltersTooltipActive: (count) => {
let pluralForm = 'aktívnych filtrov';
if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}
return `${count} ${pluralForm}`;
},
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: 'Vyhľadať…',
toolbarQuickFilterLabel: 'Vyhľadať',
toolbarQuickFilterDeleteIconLabel: 'Vymazať',
// Export selector toolbar button text
toolbarExport: 'Export',
toolbarExportLabel: 'Export',
toolbarExportCSV: 'Stiahnuť ako CSV',
toolbarExportPrint: 'Vytlačiť',
toolbarExportExcel: 'Stiahnuť ako Excel',
// Columns management text
columnsManagementSearchTitle: 'Vyhľadať',
columnsManagementNoColumns: 'Žiadne stĺpce',
columnsManagementShowHideAllText: 'Zobraziť/Skryť všetko',
// columnsManagementReset: 'Reset',
// Filter panel text
filterPanelAddFilter: 'Pridať filter',
filterPanelRemoveAll: 'Odstrániť všetky',
filterPanelDeleteIconLabel: 'Odstrániť',
filterPanelLogicOperator: 'Logický operátor',
filterPanelOperator: 'Operátory',
filterPanelOperatorAnd: 'A',
filterPanelOperatorOr: 'Alebo',
filterPanelColumns: 'Stĺpce',
filterPanelInputLabel: 'Hodnota',
filterPanelInputPlaceholder: 'Hodnota filtra',
// Filter operators text
filterOperatorContains: 'obsahuje',
filterOperatorEquals: 'rovná sa',
filterOperatorStartsWith: 'začína s',
filterOperatorEndsWith: 'končí na',
filterOperatorIs: 'je',
filterOperatorNot: 'nie je',
filterOperatorAfter: 'je po',
filterOperatorOnOrAfter: 'je na alebo po',
filterOperatorBefore: 'je pred',
filterOperatorOnOrBefore: 'je na alebo skôr',
filterOperatorIsEmpty: 'je prázdny',
filterOperatorIsNotEmpty: 'nie je prázdny',
filterOperatorIsAnyOf: 'je jeden z',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'Obsahuje',
headerFilterOperatorEquals: 'Rovná sa',
headerFilterOperatorStartsWith: 'Začína s',
headerFilterOperatorEndsWith: 'Končí na',
headerFilterOperatorIs: 'Je',
headerFilterOperatorNot: 'Nie je',
headerFilterOperatorAfter: 'Je po',
headerFilterOperatorOnOrAfter: 'Je na alebo po',
headerFilterOperatorBefore: 'Je pred',
headerFilterOperatorOnOrBefore: 'Je na alebo skôr',
headerFilterOperatorIsEmpty: 'Je prázdny',
headerFilterOperatorIsNotEmpty: 'Nie je prázdny',
headerFilterOperatorIsAnyOf: 'Je jeden z',
'headerFilterOperator=': 'Rovná sa',
'headerFilterOperator!=': 'Nerovná sa',
'headerFilterOperator>': 'Väčší ako',
'headerFilterOperator>=': 'Väčší ako alebo rovný',
'headerFilterOperator<': 'Menší ako',
'headerFilterOperator<=': 'Menší ako alebo rovný',
// Filter values text
filterValueAny: 'akýkoľvek',
filterValueTrue: 'áno',
filterValueFalse: 'nie',
// Column menu text
columnMenuLabel: 'Menu',
columnMenuShowColumns: 'Zobraziť stĺpce',
columnMenuManageColumns: 'Spravovať stĺpce',
columnMenuFilter: 'Filter',
columnMenuHideColumn: 'Skryť',
columnMenuUnsort: 'Zrušiť filtre',
columnMenuSortAsc: 'Zoradiť vzostupne',
columnMenuSortDesc: 'Zoradiť zostupne',
// Column header text
columnHeaderFiltersTooltipActive: (count) => {
let pluralForm = 'aktívnych filtrov';
if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}
return `${count} ${pluralForm}`;
},
columnHeaderFiltersLabel: 'Zobraziť filtre',
columnHeaderSortIconLabel: 'Filtrovať',
// Rows selected footer text
footerRowSelected: (count) => {
let pluralForm = 'vybraných záznamov';
if (count > 1 && count < 5) {
pluralForm = 'vybrané záznamy';
} else if (count === 1) {
pluralForm = 'vybraný záznam';
}
return `${count} ${pluralForm}`;
},
// Total row amount footer text
footerTotalRows: 'Riadkov spolu:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) => {
const str = totalCount.toString();
const firstDigit = str[0];
const op =
['4', '6', '7'].includes(firstDigit) || (firstDigit === '1' && str.length % 3 === 0)
? 'zo'
: 'z';
return `${visibleCount.toLocaleString()} ${op} ${totalCount.toLocaleString()}`;
},
// Checkbox selection text
checkboxSelectionHeaderName: 'Výber riadku',
checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
checkboxSelectionSelectRow: 'Vyber riadok',
checkboxSelectionUnselectRow: 'Zruš výber riadku',
// Boolean cell text
booleanCellTrueLabel: 'áno',
booleanCellFalseLabel: 'nie',
// Actions cell more text
actionsCellMore: 'viac',
// Column pinning text
pinToLeft: 'Pripnúť na ľavo',
pinToRight: 'Pripnúť na pravo',
unpin: 'Odopnúť',
// Tree Data
treeDataGroupingHeaderName: 'Skupina',
treeDataExpand: 'zobraziť potomkov',
treeDataCollapse: 'skryť potomkov',
// Grouping columns
groupingColumnHeaderName: 'Skupina',
groupColumn: (name) => `Zoskupiť podľa ${name}`,
unGroupColumn: (name) => `Prestať zoskupovať podľa ${name}`,
// Master/detail
detailPanelToggle: 'Prepnúť detail panelu',
expandDetailPanel: 'Rozbaliť',
collapseDetailPanel: 'Zbaliť',
// Row reordering text
rowReorderingHeaderName: 'Preusporiadávanie riadkov',
// Aggregation
aggregationMenuItemHeader: 'Agregácia',
aggregationFunctionLabelSum: 'suma',
aggregationFunctionLabelAvg: 'priemer',
aggregationFunctionLabelMin: 'min',
aggregationFunctionLabelMax: 'max',
aggregationFunctionLabelSize: 'počet',
};
export const skSK: Localization = getGridLocalization(skSKGrid, skSKCore);