310 lines
13 KiB
JavaScript
310 lines
13 KiB
JavaScript
import { getGridLocalization, buildLocaleFormat } from "../utils/getGridLocalization.mjs";
|
|
const formatNumber = buildLocaleFormat('ar-SD');
|
|
const arSDGrid = {
|
|
// 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} من المرشِحات النشطة` : `مرشِح نشط`,
|
|
// 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: '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<=': 'اصغر من او يساوي',
|
|
// 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} من المرشِحات النشطة` : `مرشِح نشط`,
|
|
columnHeaderFiltersLabel: 'إظهار المرشحات',
|
|
columnHeaderSortIconLabel: 'فرز',
|
|
// Rows selected footer text
|
|
footerRowSelected: count => count !== 1 ? `تم تحديد ${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
|
|
}) => {
|
|
if (!estimated) {
|
|
return `\u200E${formatNumber(to)}-${formatNumber(from)}\u200E من ${count !== -1 ? formatNumber(count) : `أكثر من ${formatNumber(to)}`}`;
|
|
}
|
|
const estimatedLabel = estimated && estimated > to ? `حوالي ${formatNumber(estimated)}` : `أكثر من ${formatNumber(to)}`;
|
|
return `\u200E${formatNumber(to)}-${formatNumber(from)}\u200E من ${count !== -1 ? 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 arSD = getGridLocalization(arSDGrid); |