Skip to content

Commit

Permalink
[l10n] Add Catalan (ca-ES) locale (#19428)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyuri authored and oliviertassinari committed Jan 28, 2020
1 parent f8ed1e1 commit 328c73a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 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` |
| Bulgarian | bg-BG | `bgBG` |
| Catalan | ca-ES | `caES` |
| Chinese (Simplified) | zh-CN | `zhCN` |
| Czech | cs-CZ | `csCZ` |
| Dutch | nl-NL | `nlNL` |
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
25 changes: 25 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 328c73a

Please sign in to comment.