Skip to content
6 changes: 5 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ export default defineConfig(
},
// Migrated config from packages/api-docs-builder/.eslintrc.js
{
files: ['packages/api-docs-builder/**/*'],
files: [
'packages/api-docs-builder/**/*',
// Allow named exports for locales: https://github.com/mui/material-ui/pull/46933
'packages/mui-material/src/locale/*',
],
rules: {
'import/prefer-default-export': 'off',
},
Expand Down
72 changes: 72 additions & 0 deletions packages/mui-material/src/locale/amET.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import type { Localization } from './utils/LocaleTextApi';

export const amET: Localization = {
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}${selected ? '' : ' ሂድ'}`;
}
if (type === 'first') {
return 'ወደ መጀመሪያው ገጽ ይሂዱ';
}
if (type === 'last') {
return 'ወደ መጨረሻው ገጽ ይሂዱ';
}
if (type === 'next') {
return 'ወደ ቀጣዩ ገጽ ይሂዱ';
}
// if (type === 'previous') {
return 'ወደ ቀዳሚው ገጽ ይሂዱ';
},
},
},
},
};
72 changes: 72 additions & 0 deletions packages/mui-material/src/locale/arEG.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import type { Localization } from './utils/LocaleTextApi';

export const arEG: Localization = {
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 'انتقل إلى الصفحة السابقة';
},
},
},
},
};
72 changes: 72 additions & 0 deletions packages/mui-material/src/locale/arSA.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import type { Localization } from './utils/LocaleTextApi';

export const arSA: Localization = {
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 'الانتقال إلى الصفحة السابقة';
},
},
},
},
};
72 changes: 72 additions & 0 deletions packages/mui-material/src/locale/arSD.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import type { Localization } from './utils/LocaleTextApi';

export const arSD: Localization = {
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 'انتقل إلى الصفحة السابقة';
},
},
},
},
};
81 changes: 81 additions & 0 deletions packages/mui-material/src/locale/azAZ.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import { Localization } from './utils/LocaleTextApi';

export const azAZ: Localization = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Yolu göstər',
},
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: (type) => {
if (type === 'first') {
return 'Birinci səhifəyə keç';
}
if (type === 'last') {
return 'Sonuncu səhifəyə keç';
}
if (type === 'next') {
return 'Növbəti səhifəyə keç';
}
// if (type === 'previous') {
return 'Əvvəlki səhifəyə keç';
},
labelRowsPerPage: 'Səhifəyə düşən sətrlər:',
// labelDisplayedRows: ({ from, to, count }) =>
// `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`,
},
},
MuiRating: {
defaultProps: {
getLabelText: (value) => {
let pluralForm = 'Ulduz';
const lastDigit = value % 10;

if (lastDigit > 1 && lastDigit < 5) {
pluralForm = 'Ulduzlar';
}

return `${value} ${pluralForm}`;
},
emptyLabelText: 'Boş',
},
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Silmək',
closeText: 'Bağlamaq',
loadingText: 'Yüklənir…',
noOptionsText: 'Seçimlər mövcud deyil',
openText: 'Открыть',
},
},
MuiAlert: {
defaultProps: {
closeText: 'Bağlamaq',
},
},
MuiPagination: {
defaultProps: {
'aria-label': 'Səhifənin naviqasiyası',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${page} ${selected ? 'səhifə' : 'səhifəyə keç'}`;
}
if (type === 'first') {
return 'Birinci səhifəyə keç';
}
if (type === 'last') {
return 'Sonuncu səhifəyə keç';
}
if (type === 'next') {
return 'Növbəti səhifəyə keç';
}
// if (type === 'previous') {
return 'Əvvəlki səhifəyə keç';
},
},
},
},
};
Loading
Loading