Skip to content

Commit

Permalink
Sync the English baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 26, 2020
1 parent a89041f commit e174dc5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
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: 37 additions & 13 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 @@ -341,27 +365,27 @@ export const frFR = {
export const heIL = {
props: {
MuiTablePagination: {
backIconButtonText: "העמוד הקודם",
labelRowsPerPage: "שורות בעמוד:",
backIconButtonText: 'העמוד הקודם',
labelRowsPerPage: 'שורות בעמוד:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to === -1 ? count : to} מתוך ${count}`,
nextIconButtonText: "העמוד הבא"
nextIconButtonText: 'העמוד הבא',
},
MuiRating: {
getLabelText: value => `${value} כוכב${value !== 1 ? "ים" : ""}`,
emptyLabelText: "ריק"
getLabelText: value => `${value} כוכב${value !== 1 ? 'ים' : ''}`,
emptyLabelText: 'ריק',
},
MuiAutocomplete: {
clearText: "נקה",
closeText: "סגור",
loadingText: "טוען…",
noOptionsText: "אין אופציות",
openText: "פתח"
clearText: 'נקה',
closeText: 'סגור',
loadingText: 'טוען…',
noOptionsText: 'אין אופציות',
openText: 'פתח',
},
MuiAlert: {
closeText: "סגור"
}
}
closeText: 'סגור',
},
},
};

export const huHU = {
Expand Down

0 comments on commit e174dc5

Please sign in to comment.