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 Czech and Slovak locales #18876

Merged
merged 4 commits into from
Dec 17, 2019
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
2 changes: 2 additions & 0 deletions docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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` |
Expand Down
2 changes: 2 additions & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const azAZ: object;
export const csCZ: object;
export const deDE: object;
export const enUS: object;
export const esES: object;
Expand All @@ -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;
Expand Down
58 changes: 58 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down