diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index dc5daaf7146602..151adda47b7fb8 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -29,6 +29,7 @@ const theme = createMuiTheme({ |:-------|:---------|:---------| | Azerbaijani | az-AZ | `azAZ` | | Chinese (Simplified) | zh-CN | `zhCN` | +| Czech | cs-CZ | `csCz` | | Dutch | nl-NL | `nlNL` | | English (United States) | en-US | `enUS` | | French | fr-FR | `frFR` | @@ -41,6 +42,7 @@ const theme = createMuiTheme({ | Portuguese (Brazil) | pt-BR | `ptBR` | | Romanian | ro-RO | `roRO` | | Russian | ru-RU | `ruRU` | +| Slovak | sk-SK | `skSK` | | Spanish | es-ES | `esES` | | Swedish | sv-SE | `svSE` | | Turkish | tr-TR | `trTR` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index fab491e0e8f26a..53405ef905022e 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -1,4 +1,5 @@ export const azAZ: object; +export const csCZ: object; export const deDE: object; export const enUS: object; export const esES: object; @@ -12,6 +13,7 @@ export const plPL: object; export const ptBR: object; export const roRO: object; export const ruRU: object; +export const skSK: object; export const svSE: object; export const trTR: object; export const ukUA: object; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 05b54afecc8e13..9ab400726ca460 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -28,6 +28,35 @@ export const azAZ = { }, }; +export const csCZ = { + props: { + MuiTablePagination: { + backIconButtonText: 'Předchozí stránka', + labelRowsPerPage: 'Řádků na stránce:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} z ${count}`, + nextIconButtonText: 'Další stránka', + }, + MuiRating: { + getLabelText: value => { + if (value === 1) { + return `${value} hvězdička`; + } + if (value >= 2 && value <= 4) { + return `${value} hvězdičky`; + } + return `${value} hvězdiček`; + }, + }, + MuiAutocomplete: { + clearText: 'Vymazat', + closeText: 'Zavřít', + loadingText: 'Načítání…', + noOptionsText: 'Žádné možnosti', + openText: 'Otevřít', + }, + }, +}; + export const deDE = { props: { MuiTablePagination: { @@ -327,6 +356,35 @@ export const ruRU = { }, }; +export const skSK = { + props: { + MuiTablePagination: { + backIconButtonText: 'Predchádzajúca stránka', + labelRowsPerPage: 'Riadkov na stránke:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} z ${count}`, + nextIconButtonText: 'Ďalšia stránka', + }, + MuiRating: { + getLabelText: value => { + if (value === 1) { + return `${value} hviezdička`; + } + if (value >= 2 && value <= 4) { + return `${value} hviezdičky`; + } + return `${value} hviezdičiek`; + }, + }, + MuiAutocomplete: { + clearText: 'Vymazať', + closeText: 'Zavrieť', + loadingText: 'Načítanie…', + noOptionsText: 'Žiadne možnosti', + openText: 'Otvoriť', + }, + }, +}; + export const svSE = { props: { MuiTablePagination: {