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 Hungarian (hu-HU) locale #19566

Merged
merged 3 commits into from
Feb 5, 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 @@ -37,6 +37,7 @@ const theme = createMuiTheme({
| Finnish | fi-FI | `fiFI` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
| Hungarian | hu-HU | `huHU` |
| Icelandic | is-IS | `isIS` |
| Indonesian | id-ID | `idID` |
| Italian | it-IT | `itIT` |
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 @@ -8,6 +8,7 @@ export const esES: object;
export const faIR: object;
export const fiFI: object;
export const frFR: object;
export const huHU: object;
export const idID: object;
export const isIS: object;
export const itIT: object;
Expand Down
51 changes: 38 additions & 13 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,27 +268,27 @@ export const frFR = {
},
};

export const isIS = {
export const huHU = {
props: {
MuiTablePagination: {
backIconButtonText: 'Fyrri síða',
labelRowsPerPage: 'Raðir á síðu:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} af ${count}`,
nextIconButtonText: 'Næsta síða',
backIconButtonText: 'Előző oldal',
labelRowsPerPage: 'Sorok száma:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} / ${count}`,
nextIconButtonText: 'Következő oldal',
},
MuiRating: {
getLabelText: value => `${value} ${value === 1 ? 'Stjarna' : 'Stjörnur'}`,
emptyLabelText: 'Tómt',
getLabelText: value => `${value} Csillag`,
emptyLabelText: 'Üres',
},
MuiAutocomplete: {
clearText: 'Hreinsa',
closeText: 'Loka',
loadingText: 'Hlaða…',
noOptionsText: 'Engar niðurstöður',
openText: 'Opna',
clearText: 'Törlés',
closeText: 'Bezárás',
loadingText: 'Töltés…',
noOptionsText: 'Nincs találat',
openText: 'Megnyitás',
},
MuiAlert: {
closeText: 'Loka',
closeText: 'Bezárás',
},
},
};
Expand Down Expand Up @@ -319,6 +319,31 @@ export const idID = {
},
};

export const isIS = {
props: {
MuiTablePagination: {
backIconButtonText: 'Fyrri síða',
labelRowsPerPage: 'Raðir á síðu:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} af ${count}`,
nextIconButtonText: 'Næsta síða',
},
MuiRating: {
getLabelText: value => `${value} ${value === 1 ? 'Stjarna' : 'Stjörnur'}`,
emptyLabelText: 'Tómt',
},
MuiAutocomplete: {
clearText: 'Hreinsa',
closeText: 'Loka',
loadingText: 'Hlaða…',
noOptionsText: 'Engar niðurstöður',
openText: 'Opna',
},
MuiAlert: {
closeText: 'Loka',
},
},
};

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