From 18524c16856b2aa7f7515a327f17e3ff8f80228d Mon Sep 17 00:00:00 2001 From: vgaborabs Date: Wed, 5 Feb 2020 11:19:51 +0100 Subject: [PATCH] [l10n] Add Hungarian (hu-HU) locale (#19566) --- .../pages/guides/localization/localization.md | 1 + packages/material-ui/src/locale/index.d.ts | 1 + packages/material-ui/src/locale/index.js | 51 ++++++++++++++----- 3 files changed, 40 insertions(+), 13 deletions(-) diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index 4102d7f3e501a0..4081585d44a7be 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -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` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index 3821da3b59cad2..84dec92d52f5a8 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -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; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 76e071612a957b..7fae658de6d2af 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -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', }, }, }; @@ -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: {