From 6dc2134def152f51ff78ac8b67c5b7ee56ccfd92 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Tue, 21 Apr 2020 10:27:59 +0200 Subject: [PATCH 1/3] [l10n] Improve cs-CZ locale Ref #20656 --- packages/material-ui/src/locale/index.js | 50 ++++++++++++------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 6c96c2d6fa0ed7..b8a0ebb312f38f 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -156,9 +156,9 @@ export const caES = { export const csCZ = { props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, + MuiBreadcrumbs: { + expandText: 'Ukázat drobečky', + }, MuiTablePagination: { backIconButtonText: 'Předchozí stránka', labelRowsPerPage: 'Řádků na stránce:', @@ -175,7 +175,7 @@ export const csCZ = { } return `${value} hvězdiček`; }, - emptyLabelText: 'Empty', + emptyLabelText: 'Prázdné', }, MuiAutocomplete: { clearText: 'Vymazat', @@ -187,27 +187,27 @@ export const csCZ = { MuiAlert: { closeText: 'Zavřít', }, - // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, + MuiPagination: { + 'aria-label': 'Navigace stránkovním', + getItemAriaLabel: (type, page, selected) => { + if (type === 'page') { + return `${selected ? '' : 'Jít na '}${page} stránku`; + } + if (type === 'first') { + return 'Jít na první stránku'; + } + if (type === 'last') { + return 'Jít na poslední stránku'; + } + if (type === 'next') { + return 'Jít na další stránku'; + } + if (type === 'previous') { + return 'Jít na předchozí stránku'; + } + return undefined; + }, + }, }, }; From 6768619cefad3d637f7235fc0c226c4366484d0f Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Tue, 21 Apr 2020 10:36:44 +0200 Subject: [PATCH 2/3] Update packages/material-ui/src/locale/index.js --- packages/material-ui/src/locale/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index b8a0ebb312f38f..18399074353ea2 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -188,7 +188,7 @@ export const csCZ = { closeText: 'Zavřít', }, MuiPagination: { - 'aria-label': 'Navigace stránkovním', + 'aria-label': 'Navigace stránkováním', getItemAriaLabel: (type, page, selected) => { if (type === 'page') { return `${selected ? '' : 'Jít na '}${page} stránku`; From f50ee5813e7cbf4ba8318cf2e0662e516a187277 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Tue, 21 Apr 2020 10:45:44 +0200 Subject: [PATCH 3/3] Update packages/material-ui/src/locale/index.js --- packages/material-ui/src/locale/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 18399074353ea2..8c4c3965502cba 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -157,7 +157,7 @@ export const caES = { export const csCZ = { props: { MuiBreadcrumbs: { - expandText: 'Ukázat drobečky', + expandText: 'Ukázat cestu', }, MuiTablePagination: { backIconButtonText: 'Předchozí stránka',