From 43b7c641c378650922b3d8985cc14d60f8367357 Mon Sep 17 00:00:00 2001 From: Sampsa Kaskela Date: Wed, 29 Jan 2020 20:50:50 +0200 Subject: [PATCH 1/2] [l10n] Add Finnish (fi-FI) locale --- packages/material-ui/src/locale/index.d.ts | 1 + packages/material-ui/src/locale/index.js | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index b10dfb4801dd44..1507fe341a92c7 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -6,6 +6,7 @@ export const deDE: object; export const enUS: object; export const esES: object; export const faIR: object; +export const fiFI: object; export const frFR: object; export const idID: object; export const itIT: object; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index d5e1c64785ab23..5e1d9a54ff8bd6 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -218,6 +218,31 @@ export const faIR = { }, }; +export const fiFI = { + props: { + MuiTablePagination: { + backIconButtonText: 'Edellinen sivu', + labelRowsPerPage: 'Rivejä per sivu:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} / ${count}`, + nextIconButtonText: 'Seuraava sivu', + }, + MuiRating: { + getLabelText: value => `${value} Täht${value !== 1 ? 'eä' : 'i'}`, + emptyLabelText: 'Tyhjä', + }, + MuiAutocomplete: { + clearText: 'Tyhjennä', + closeText: 'Sulje', + loadingText: 'Ladataan…', + noOptionsText: 'Ei valintoja', + openText: 'Avaa', + }, + MuiAlert: { + closeText: 'Sulje', + }, + }, +}; + export const frFR = { props: { MuiTablePagination: { From 830461b7a62c29921f441c96285336b73948a62d Mon Sep 17 00:00:00 2001 From: Sampsa Kaskela Date: Wed, 29 Jan 2020 21:17:03 +0200 Subject: [PATCH 2/2] Update localization.md --- docs/src/pages/guides/localization/localization.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index bb060161f69277..c315e5baca38d0 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -34,6 +34,7 @@ const theme = createMuiTheme({ | Czech | cs-CZ | `csCZ` | | Dutch | nl-NL | `nlNL` | | English (United States) | en-US | `enUS` | +| Finnish | fi-FI | `fiFI` | | French | fr-FR | `frFR` | | German | de-DE | `deDE` | | Indonesian | id-ID | `idID` |