Skip to content

Commit 98266f5

Browse files
boazbermanEsoterikStare
authored andcommitted
[l10n] Add Hebrew (he-IL) locale (mui#19850)
1 parent 7e821dd commit 98266f5

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

docs/src/pages/guides/localization/localization.md

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const theme = createMuiTheme({
3939
| Finnish | fi-FI | `fiFI` |
4040
| French | fr-FR | `frFR` |
4141
| German | de-DE | `deDE` |
42+
| Hebrew | he-IL | `heIL` |
4243
| Hungarian | hu-HU | `huHU` |
4344
| Icelandic | is-IS | `isIS` |
4445
| Indonesian | id-ID | `idID` |

packages/material-ui/src/locale/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const etEE: object;
99
export const faIR: object;
1010
export const fiFI: object;
1111
export const frFR: object;
12+
export const heIL: object;
1213
export const huHU: object;
1314
export const hyAM: object;
1415
export const idID: object;

packages/material-ui/src/locale/index.js

+50
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ export const deDE = {
144144
export const enUS = {
145145
/**
146146
props: {
147+
MuiBreadcrumbs: {
148+
expandText: 'Show path',
149+
},
147150
MuiTablePagination: {
148151
backIconButtonText: 'Previous page',
149152
labelRowsPerPage: 'Rows per page:',
@@ -164,6 +167,27 @@ export const enUS = {
164167
MuiAlert: {
165168
closeText: 'Close',
166169
},
170+
MuiPagination: {
171+
'aria-label': 'Pagination navigation',
172+
getItemAriaLabel: (type, page, selected) => {
173+
if (type === 'page') {
174+
return `${selected ? '' : 'Go to '}page ${page}`;
175+
}
176+
if (type === 'first') {
177+
return 'Go to first page';
178+
}
179+
if (type === 'last') {
180+
return 'Go to last page';
181+
}
182+
if (type === 'next') {
183+
return 'Go to next page';
184+
}
185+
if (type === 'previous') {
186+
return 'Go to previous page';
187+
}
188+
return undefined;
189+
},
190+
},
167191
},
168192
*/
169193
};
@@ -338,6 +362,32 @@ export const frFR = {
338362
},
339363
};
340364

365+
export const heIL = {
366+
props: {
367+
MuiTablePagination: {
368+
backIconButtonText: 'העמוד הקודם',
369+
labelRowsPerPage: 'שורות בעמוד:',
370+
labelDisplayedRows: ({ from, to, count }) =>
371+
`${from}-${to === -1 ? count : to} מתוך ${count}`,
372+
nextIconButtonText: 'העמוד הבא',
373+
},
374+
MuiRating: {
375+
getLabelText: value => `${value} כוכב${value !== 1 ? 'ים' : ''}`,
376+
emptyLabelText: 'ריק',
377+
},
378+
MuiAutocomplete: {
379+
clearText: 'נקה',
380+
closeText: 'סגור',
381+
loadingText: 'טוען…',
382+
noOptionsText: 'אין אופציות',
383+
openText: 'פתח',
384+
},
385+
MuiAlert: {
386+
closeText: 'סגור',
387+
},
388+
},
389+
};
390+
341391
export const huHU = {
342392
props: {
343393
MuiTablePagination: {

0 commit comments

Comments
 (0)