Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Add Estonian (et-EE) locale #19707

Merged
merged 2 commits into from
Feb 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -34,6 +34,7 @@ const theme = createMuiTheme({
| Czech | cs-CZ | `csCZ` |
| Dutch | nl-NL | `nlNL` |
| English (United States) | en-US | `enUS` |
| Estonian | et-EE | `etEE` |
| Finnish | fi-FI | `fiFI` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
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 @@ -5,6 +5,7 @@ export const csCZ: object;
export const deDE: object;
export const enUS: object;
export const esES: object;
export const etEE: object;
export const faIR: object;
export const fiFI: object;
export const frFR: object;
Expand Down
46 changes: 46 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,52 @@ export const esES = {
},
};

export const etEE = {
props: {
MuiTablePagination: {
backIconButtonText: 'Eelmine lehekülg',
labelRowsPerPage: 'Ridu leheküljel:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} / ${count}`,
nextIconButtonText: 'Järgmine lehekülg',
},
MuiRating: {
getLabelText: value => `${value} Tärn${value !== 1 ? 'i' : ''}`,
emptyLabelText: 'Tühi',
},
MuiAutocomplete: {
clearText: 'Tühjenda',
closeText: 'Sulge',
loadingText: 'Laen…',
noOptionsText: 'Valikuid ei ole',
openText: 'Ava',
},
MuiAlert: {
closeText: 'Sulge',
},
MuiPagination: {
'aria-label': 'Lehekülgede valik',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Vali '}lehekülg ${page}`;
}
if (type === 'first') {
return 'Vali esimene lehekülg';
}
if (type === 'last') {
return 'Vali viimane lehekülg';
}
if (type === 'next') {
return 'Vali järgmine lehekülg';
}
if (type === 'previous') {
return 'Vali eelmine lehekülg';
}
return undefined;
},
},
},
};

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