|
| 1 | +import { Localization } from './utils/LocaleTextApi'; |
| 2 | + |
| 3 | +export const azAZ: Localization = { |
| 4 | + components: { |
| 5 | + MuiBreadcrumbs: { |
| 6 | + defaultProps: { |
| 7 | + expandText: 'Yolu göstər', |
| 8 | + }, |
| 9 | + }, |
| 10 | + MuiTablePagination: { |
| 11 | + defaultProps: { |
| 12 | + getItemAriaLabel: (type) => { |
| 13 | + if (type === 'first') { |
| 14 | + return 'Birinci səhifəyə keç'; |
| 15 | + } |
| 16 | + if (type === 'last') { |
| 17 | + return 'Sonuncu səhifəyə keç'; |
| 18 | + } |
| 19 | + if (type === 'next') { |
| 20 | + return 'Növbəti səhifəyə keç'; |
| 21 | + } |
| 22 | + // if (type === 'previous') { |
| 23 | + return 'Əvvəlki səhifəyə keç'; |
| 24 | + }, |
| 25 | + labelRowsPerPage: 'Səhifəyə düşən sətrlər:', |
| 26 | + // labelDisplayedRows: ({ from, to, count }) => |
| 27 | + // `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`, |
| 28 | + }, |
| 29 | + }, |
| 30 | + MuiRating: { |
| 31 | + defaultProps: { |
| 32 | + getLabelText: (value) => { |
| 33 | + let pluralForm = 'Ulduz'; |
| 34 | + const lastDigit = value % 10; |
| 35 | + |
| 36 | + if (lastDigit > 1 && lastDigit < 5) { |
| 37 | + pluralForm = 'Ulduzlar'; |
| 38 | + } |
| 39 | + |
| 40 | + return `${value} ${pluralForm}`; |
| 41 | + }, |
| 42 | + emptyLabelText: 'Boş', |
| 43 | + }, |
| 44 | + }, |
| 45 | + MuiAutocomplete: { |
| 46 | + defaultProps: { |
| 47 | + clearText: 'Silmək', |
| 48 | + closeText: 'Bağlamaq', |
| 49 | + loadingText: 'Yüklənir…', |
| 50 | + noOptionsText: 'Seçimlər mövcud deyil', |
| 51 | + openText: 'Открыть', |
| 52 | + }, |
| 53 | + }, |
| 54 | + MuiAlert: { |
| 55 | + defaultProps: { |
| 56 | + closeText: 'Bağlamaq', |
| 57 | + }, |
| 58 | + }, |
| 59 | + MuiPagination: { |
| 60 | + defaultProps: { |
| 61 | + 'aria-label': 'Səhifənin naviqasiyası', |
| 62 | + getItemAriaLabel: (type, page, selected) => { |
| 63 | + if (type === 'page') { |
| 64 | + return `${page} ${selected ? 'səhifə' : 'səhifəyə keç'}`; |
| 65 | + } |
| 66 | + if (type === 'first') { |
| 67 | + return 'Birinci səhifəyə keç'; |
| 68 | + } |
| 69 | + if (type === 'last') { |
| 70 | + return 'Sonuncu səhifəyə keç'; |
| 71 | + } |
| 72 | + if (type === 'next') { |
| 73 | + return 'Növbəti səhifəyə keç'; |
| 74 | + } |
| 75 | + // if (type === 'previous') { |
| 76 | + return 'Əvvəlki səhifəyə keç'; |
| 77 | + }, |
| 78 | + }, |
| 79 | + }, |
| 80 | + }, |
| 81 | +}; |
0 commit comments