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 Catalan (ca-ES) locale #19428

Merged
merged 10 commits into from
Jan 28, 2020
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
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