neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+80
View File
@@ -0,0 +1,80 @@
import buildFormatNumber from "./utils/buildFormatNumber.mjs";
const formatNumber = buildFormatNumber('fa-IR');
export const faIR = {
components: {
// MuiBreadcrumbs: {
// defaultProps: {
// expandText: 'Show path',
// },
// },
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
}) => `${formatNumber(from)}–${formatNumber(to)} از ${count !== -1 ? formatNumber(count) : `بیشتر از ${formatNumber(to)}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} ستاره`,
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 'رفتن به صفحه‌ی قبلی';
}
}
}
}
};