Skip to content

Commit

Permalink
[docs] Add Macedonian translation (#31402)
Browse files Browse the repository at this point in the history
Co-authored-by: Marija Najdova <[email protected]>
  • Loading branch information
theCuriousOne and mnajdova committed Mar 14, 2022
1 parent 0f0f2b4 commit 7486738
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data/material/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const theme = createTheme(
| Khmer | kh-KH | `khKH` |
| Kazakh | kz-KZ | `kzKZ` |
| Korean | ko-KR | `koKR` |
| Macedonian | mk-MK | `mkMK` |
| Norwegian (bokmål) | nb-NO | `nbNO` |
| Persian | fa-IR | `faIR` |
| Polish | pl-PL | `plPL` |
Expand Down
75 changes: 75 additions & 0 deletions packages/mui-material/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,81 @@ export const kzKZ: Localization = {
},
};

// Macedonian - Македонски
export const mkMK: 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) => {
const lastDigit = value % 10;
return `${value} Ѕвезд${lastDigit === 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 'Оди на предходна страница';
},
},
},
},
};

export const nbNO: Localization = {
components: {
MuiBreadcrumbs: {
Expand Down

0 comments on commit 7486738

Please sign in to comment.