Files
2026-03-13 19:23:37 +03:00

73 lines
2.1 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const arSD = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'إظهار المسار'
}
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: type => {
if (type === 'first') {
return 'انتقل إلى الصفحة الأولى';
}
if (type === 'last') {
return 'انتقل إلى الصفحة الأخيرة';
}
if (type === 'next') {
return 'انتقل إلى الصفحة التالية';
}
// if (type === 'previous') {
return 'انتقل إلى الصفحة السابقة';
},
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
labelDisplayedRows: ({
from,
to,
count
}) => `${from}${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
emptyLabelText: 'فارغ'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'مسح',
closeText: 'إغلاق',
loadingText: 'جار التحميل...',
noOptionsText: 'لا يوجد خيارات',
openText: 'فتح'
}
},
MuiAlert: {
defaultProps: {
closeText: 'إغلاق'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'التنقل عبر الصفحات',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
}
if (type === 'first') {
return 'انتقل إلى الصفحة الأولى';
}
if (type === 'last') {
return 'انتقل الي الصفحة الأخيرة';
}
if (type === 'next') {
return 'انتقل إلى الصفحة التالية';
}
// if (type === 'previous') {
return 'انتقل إلى الصفحة السابقة';
}
}
}
}
};