310 lines
14 KiB
JavaScript
310 lines
14 KiB
JavaScript
import { getGridLocalization } from "../utils/getGridLocalization.mjs";
|
||
const faIRGrid = {
|
||
// 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: 'یا',
|
||
filterPanelColumn: 'ستونها',
|
||
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 = getGridLocalization(faIRGrid); |