Skip to content

Commit

Permalink
[l10n] Add Hebrew (he-IL) locale (#19850)
Browse files Browse the repository at this point in the history
  • Loading branch information
boazberman authored Feb 26, 2020
1 parent 193de7b commit 9532f26
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const theme = createMuiTheme({
| Finnish | fi-FI | `fiFI` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
| Hebrew | he-IL | `heIL` |
| Hungarian | hu-HU | `huHU` |
| Icelandic | is-IS | `isIS` |
| Indonesian | id-ID | `idID` |
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const etEE: object;
export const faIR: object;
export const fiFI: object;
export const frFR: object;
export const heIL: object;
export const huHU: object;
export const hyAM: object;
export const idID: object;
Expand Down
50 changes: 50 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export const deDE = {
export const enUS = {
/**
props: {
MuiBreadcrumbs: {
expandText: 'Show path',
},
MuiTablePagination: {
backIconButtonText: 'Previous page',
labelRowsPerPage: 'Rows per page:',
Expand All @@ -164,6 +167,27 @@ export const enUS = {
MuiAlert: {
closeText: 'Close',
},
MuiPagination: {
'aria-label': 'Pagination navigation',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Go to '}page ${page}`;
}
if (type === 'first') {
return 'Go to first page';
}
if (type === 'last') {
return 'Go to last page';
}
if (type === 'next') {
return 'Go to next page';
}
if (type === 'previous') {
return 'Go to previous page';
}
return undefined;
},
},
},
*/
};
Expand Down Expand Up @@ -338,6 +362,32 @@ export const frFR = {
},
};

export const heIL = {
props: {
MuiTablePagination: {
backIconButtonText: 'העמוד הקודם',
labelRowsPerPage: 'שורות בעמוד:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to === -1 ? count : to} מתוך ${count}`,
nextIconButtonText: 'העמוד הבא',
},
MuiRating: {
getLabelText: value => `${value} כוכב${value !== 1 ? 'ים' : ''}`,
emptyLabelText: 'ריק',
},
MuiAutocomplete: {
clearText: 'נקה',
closeText: 'סגור',
loadingText: 'טוען…',
noOptionsText: 'אין אופציות',
openText: 'פתח',
},
MuiAlert: {
closeText: 'סגור',
},
},
};

export const huHU = {
props: {
MuiTablePagination: {
Expand Down

0 comments on commit 9532f26

Please sign in to comment.