Skip to content

Commit

Permalink
[l10n] Add Hungarian (hu-HU) locale (#19566)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgaborabs authored Feb 5, 2020
1 parent 820ae14 commit 18524c1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 13 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 @@ -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

0 comments on commit 18524c1

Please sign in to comment.