UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

80 lines 2.35 kB
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 'رفتن به صفحه‌ی قبلی'; } } } } };