forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaIR.ts
More file actions
343 lines (305 loc) · 13.7 KB
/
faIR.ts
File metadata and controls
343 lines (305 loc) · 13.7 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
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
import type { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization, type Localization } from '../utils/getGridLocalization';
const faIRGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: 'بدون سطر',
noResultsOverlayLabel: 'نتیجهای پیدا نشد.',
// noColumnsOverlayLabel: 'No columns',
// noColumnsOverlayManageColumns: 'Manage columns',
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
// Density selector toolbar button text
toolbarDensity: 'تراکم',
toolbarDensityLabel: 'تراکم',
toolbarDensityCompact: 'فشرده',
toolbarDensityStandard: 'استاندارد',
toolbarDensityComfortable: 'راحت',
// Undo/redo toolbar button text
toolbarUndo: 'واگرد',
toolbarRedo: 'ازنو',
// 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: 'دانلود به صورت اکسل',
// Toolbar pivot button
// toolbarPivot: 'Pivot',
// Toolbar charts button
// toolbarCharts: 'Charts',
// Toolbar AI Assistant button
// toolbarAssistant: 'AI Assistant',
// Columns management text
columnsManagementSearchTitle: 'جستجو',
columnsManagementNoColumns: 'بدون سطر',
columnsManagementShowHideAllText: 'نمایش/مخفی کردن همه',
columnsManagementReset: 'بازنشانی',
columnsManagementDeleteIconLabel: 'پاک کردن',
// Filter panel text
filterPanelAddFilter: 'افزودن فیلتر',
filterPanelRemoveAll: 'حذف همه',
filterPanelDeleteIconLabel: 'حذف',
filterPanelLogicOperator: 'عملگر منطقی',
filterPanelOperator: 'عملگرها',
filterPanelOperatorAnd: 'و',
filterPanelOperatorOr: 'یا',
filterPanelColumns: 'ستونها',
filterPanelInputLabel: 'مقدار',
filterPanelInputPlaceholder: 'فیلتر مقدار',
// Filter operators text
filterOperatorContains: 'شامل',
filterOperatorDoesNotContain: 'شامل نمیشود',
filterOperatorEquals: 'مساوی',
filterOperatorDoesNotEqual: 'برابر نیست',
filterOperatorStartsWith: 'شروع با',
filterOperatorEndsWith: 'پایان با',
filterOperatorIs: 'هست',
filterOperatorNot: 'نیست',
filterOperatorAfter: 'بعد از',
filterOperatorOnOrAfter: 'معادل یا بعدش',
filterOperatorBefore: 'قبلش',
filterOperatorOnOrBefore: 'معادل یا قبلش',
filterOperatorIsEmpty: 'خالی است',
filterOperatorIsNotEmpty: 'خالی نیست',
filterOperatorIsAnyOf: 'هر یک از',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'شامل',
headerFilterOperatorDoesNotContain: 'شامل نمیشود',
headerFilterOperatorEquals: 'مساوی',
headerFilterOperatorDoesNotEqual: 'برابر نیست',
headerFilterOperatorStartsWith: 'شروع با',
headerFilterOperatorEndsWith: 'پایان با',
headerFilterOperatorIs: 'هست',
headerFilterOperatorNot: 'نیست',
headerFilterOperatorAfter: 'بعد از',
headerFilterOperatorOnOrAfter: 'معادل یا بعد از',
headerFilterOperatorBefore: 'قبل از',
headerFilterOperatorOnOrBefore: 'معادل یا قبل از',
headerFilterOperatorIsEmpty: 'خالی است',
headerFilterOperatorIsNotEmpty: 'خالی نیست',
headerFilterOperatorIsAnyOf: 'هر یک از',
'headerFilterOperator=': 'مساوی',
'headerFilterOperator!=': 'نامساوی',
'headerFilterOperator>': 'بزرگتر',
'headerFilterOperator>=': 'بزرگتر یا مساوی',
'headerFilterOperator<': 'کوچکتر',
'headerFilterOperator<=': 'کوچکتر یا مساوی',
// headerFilterClear: 'Clear filter',
// Filter values text
filterValueAny: 'هرچیزی',
filterValueTrue: 'صحیح',
filterValueFalse: 'غلط',
// Column menu text
columnMenuLabel: 'فهرست',
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
columnMenuShowColumns: 'نمایش ستونها',
columnMenuManageColumns: 'مدیریت ستونها',
columnMenuFilter: 'فیلتر',
columnMenuHideColumn: 'مخفی',
columnMenuUnsort: 'نامرتبکردن',
columnMenuSortAsc: 'مرتبسازی صعودی',
columnMenuSortDesc: 'مرتبسازی نزولی',
// columnMenuManagePivot: 'Manage pivot',
// columnMenuManageCharts: 'Manage charts',
// 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) =>
`${visibleCount.toLocaleString()} از ${totalCount.toLocaleString()}`,
// Checkbox selection text
checkboxSelectionHeaderName: 'چکباکس انتخاب',
checkboxSelectionSelectAllRows: 'انتخاب همهی ردیفها',
checkboxSelectionUnselectAllRows: 'لغو انتخاب همهی ردیفها',
checkboxSelectionSelectRow: 'انتخاب ردیف',
checkboxSelectionUnselectRow: 'لغو انتخاب ردیف',
// Boolean cell text
booleanCellTrueLabel: 'صحیح',
booleanCellFalseLabel: 'غلط',
// Long text cell
longTextCellExpandLabel: 'بازکردن پنل جزئیات',
longTextCellCollapseLabel: 'بستن پنل جزئیات',
// 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: 'بستن پنل جزئیات',
// Pagination
paginationRowsPerPage: 'تعداد سطرهای هر صفحه:',
// paginationDisplayedRows: ({
// from,
// to,
// count,
// estimated
// }) => {
// const unknownRowCount = count == null || count === -1;
// if (!estimated) {
// return `${formatNumber(from)}–${formatNumber(to)} of ${!unknownRowCount ? formatNumber(count) : `more than ${formatNumber(to)}`}`;
// }
// const estimatedLabel = estimated && estimated > to ? `around ${formatNumber(estimated)}` : `more than ${formatNumber(to)}`;
// return `${formatNumber(from)}–${formatNumber(to)} of ${!unknownRowCount ? formatNumber(count) : estimatedLabel}`;
// },
paginationItemAriaLabel: (type) => {
if (type === 'first') {
return 'رفتن به اولین صفحه';
}
if (type === 'last') {
return 'رفتن به آخرین صفحه';
}
if (type === 'next') {
return 'رفتن به صفحهی بعدی';
}
// if (type === 'previous') {
return 'رفتن به صفحهی قبلی';
},
// Row reordering text
rowReorderingHeaderName: 'ترتیب مجدد سطر',
// Aggregation
aggregationMenuItemHeader: 'تجمیع',
// aggregationFunctionLabelNone: 'none',
aggregationFunctionLabelSum: 'جمع',
aggregationFunctionLabelAvg: 'میانگین',
aggregationFunctionLabelMin: 'حداقل',
aggregationFunctionLabelMax: 'حداکثر',
aggregationFunctionLabelSize: 'اندازه',
// Pivot panel
// pivotToggleLabel: 'Pivot',
// pivotRows: 'Rows',
// pivotColumns: 'Columns',
// pivotValues: 'Values',
// pivotCloseButton: 'Close pivot settings',
// pivotSearchButton: 'Search fields',
// pivotSearchControlPlaceholder: 'Search fields',
// pivotSearchControlLabel: 'Search fields',
// pivotSearchControlClear: 'Clear search',
// pivotNoFields: 'No fields',
// pivotMenuMoveUp: 'Move up',
// pivotMenuMoveDown: 'Move down',
// pivotMenuMoveToTop: 'Move to top',
// pivotMenuMoveToBottom: 'Move to bottom',
// pivotMenuRows: 'Rows',
// pivotMenuColumns: 'Columns',
// pivotMenuValues: 'Values',
// pivotMenuOptions: 'Field options',
// pivotMenuAddToRows: 'Add to Rows',
// pivotMenuAddToColumns: 'Add to Columns',
// pivotMenuAddToValues: 'Add to Values',
// pivotMenuRemove: 'Remove',
// pivotDragToRows: 'Drag here to create rows',
// pivotDragToColumns: 'Drag here to create columns',
// pivotDragToValues: 'Drag here to create values',
// pivotYearColumnHeaderName: '(Year)',
// pivotQuarterColumnHeaderName: '(Quarter)',
// Charts configuration panel
// chartsNoCharts: 'There are no charts available',
// chartsChartNotSelected: 'Select a chart type to configure its options',
// chartsTabChart: 'Chart',
// chartsTabFields: 'Fields',
// chartsTabCustomize: 'Customize',
// chartsCloseButton: 'Close charts configuration',
// chartsSyncButtonLabel: 'Sync chart',
// chartsSearchPlaceholder: 'Search fields',
// chartsSearchLabel: 'Search fields',
// chartsSearchClear: 'Clear search',
// chartsNoFields: 'No fields',
// chartsFieldBlocked: 'This field cannot be added to any section',
// chartsCategories: 'Categories',
// chartsSeries: 'Series',
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
// chartsMenuMoveUp: 'Move up',
// chartsMenuMoveDown: 'Move down',
// chartsMenuMoveToTop: 'Move to top',
// chartsMenuMoveToBottom: 'Move to bottom',
// chartsMenuOptions: 'Field options',
// chartsMenuRemove: 'Remove',
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
// AI Assistant panel
// aiAssistantPanelTitle: 'AI Assistant',
// aiAssistantPanelClose: 'Close AI Assistant',
// aiAssistantPanelNewConversation: 'New conversation',
// aiAssistantPanelConversationHistory: 'Conversation history',
// aiAssistantPanelEmptyConversation: 'No prompt history',
// aiAssistantSuggestions: 'Suggestions',
// Prompt field
// promptFieldLabel: 'Prompt',
// promptFieldPlaceholder: 'Type a prompt…',
// promptFieldPlaceholderWithRecording: 'Type or record a prompt…',
// promptFieldPlaceholderListening: 'Listening for prompt…',
// promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
// promptFieldSend: 'Send',
// promptFieldRecord: 'Record',
// promptFieldStopRecording: 'Stop recording',
// Prompt
// promptRerun: 'Run again',
// promptProcessing: 'Processing…',
// promptAppliedChanges: 'Applied changes',
// Prompt changes
// promptChangeGroupDescription: (column: string) => `Group by ${column}`,
// promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
// promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
// promptChangeFilterLabel: (column: string, operator: string, value: string) => {
// if (operator === 'is any of') {
// return `${column} is any of: ${value}`;
// }
// return `${column} ${operator} ${value}`;
// },
// promptChangeFilterDescription: (column: string, operator: string, value: string) => {
// if (operator === 'is any of') {
// return `Filter where ${column} is any of: ${value}`;
// }
// return `Filter where ${column} ${operator} ${value}`;
// },
// promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
// promptChangePivotEnableLabel: 'Pivot',
// promptChangePivotEnableDescription: 'Enable pivot',
// promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
// promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
// promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
// promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
// promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
// promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
};
export const faIR: Localization = getGridLocalization(faIRGrid);