From 51f154be68d9a4c362081255adbd5b6be8ebf77e Mon Sep 17 00:00:00 2001 From: yyuri Date: Mon, 27 Jan 2020 18:55:45 +0100 Subject: [PATCH 1/4] Added Catalan (ca_ES) translation Added Catalan (ca_ES) locale and translation --- packages/material-ui/src/locale/index.js | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 1bc9aa7d3ff368..1b097b9d8dea14 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -57,6 +57,31 @@ export const bgBG = { }, }; +export const caES = { + props: { + MuiTablePagination: { + backIconButtonText: 'Pàgina anterior', + labelRowsPerPage: 'Files per pàgina:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} de ${count}`, + nextIconButtonText: 'Següent pàgina', + }, + MuiRating: { + getLabelText: value => `${value} ${value !== 1 ? 'Estrelles' : 'Estrella'}`, + emptyLabelText: 'Buit', + }, + MuiAutocomplete: { + clearText: 'Netejar', + closeText: 'Tancar', + loadingText: 'Carregant…', + noOptionsText: 'Sense opcions', + openText: 'Obert', + }, + MuiAlert: { + closeText: 'Tancat', + }, + }, +}; + export const csCZ = { props: { MuiTablePagination: { From 42dfa14548d1d7d897c0c6ee8de945774fd025eb Mon Sep 17 00:00:00 2001 From: yyuri Date: Tue, 28 Jan 2020 12:21:30 +0100 Subject: [PATCH 2/4] Added ca_ES Added catalan translations --- packages/material-ui/src/locale/index.js | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 1bc9aa7d3ff368..1b097b9d8dea14 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -57,6 +57,31 @@ export const bgBG = { }, }; +export const caES = { + props: { + MuiTablePagination: { + backIconButtonText: 'Pàgina anterior', + labelRowsPerPage: 'Files per pàgina:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} de ${count}`, + nextIconButtonText: 'Següent pàgina', + }, + MuiRating: { + getLabelText: value => `${value} ${value !== 1 ? 'Estrelles' : 'Estrella'}`, + emptyLabelText: 'Buit', + }, + MuiAutocomplete: { + clearText: 'Netejar', + closeText: 'Tancar', + loadingText: 'Carregant…', + noOptionsText: 'Sense opcions', + openText: 'Obert', + }, + MuiAlert: { + closeText: 'Tancat', + }, + }, +}; + export const csCZ = { props: { MuiTablePagination: { From 1ce649cd8a2862725eb8146bcdaf1656e979beb9 Mon Sep 17 00:00:00 2001 From: yyuri Date: Tue, 28 Jan 2020 12:22:42 +0100 Subject: [PATCH 3/4] Added ca_ES locale --- packages/material-ui/src/locale/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index d8769efcc16275..c6b463a057a514 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -1,5 +1,6 @@ export const azAZ: object; export const bgBG: object; +export const caES: object; export const csCZ: object; export const deDE: object; export const enUS: object; From 4bd6b845b0a881c32984667b637d0f44bca355c3 Mon Sep 17 00:00:00 2001 From: yyuri Date: Tue, 28 Jan 2020 12:24:24 +0100 Subject: [PATCH 4/4] Added Catalan translations --- 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 cf675be9280fee..555855f4ec1da8 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` | | Bulgarian | bg-BG | `bgBG` | +| Catalan | ca-ES | `caES` | | Chinese (Simplified) | zh-CN | `zhCN` | | Czech | cs-CZ | `csCZ` | | Dutch | nl-NL | `nlNL` |