@@ -2,29 +2,29 @@ import type { Localization } from './utils/LocaleTextApi';
22
33export const caES : Localization = {
44 components : {
5- // MuiBreadcrumbs: {
6- // defaultProps: {
7- // expandText: 'Show path ',
8- // },
9- // },
5+ MuiBreadcrumbs : {
6+ defaultProps : {
7+ expandText : 'Mostra el camí ' ,
8+ } ,
9+ } ,
1010 MuiTablePagination : {
1111 defaultProps : {
12- // getItemAriaLabel: (type) => {
13- // if (type === 'first') {
14- // return 'Go to first page ';
15- // }
16- // if (type === 'last') {
17- // return 'Go to last page' ;
18- // }
19- // if (type === 'next') {
20- // return 'Go to next page ';
21- // }
22- // // if (type === 'previous') {
23- // return 'Go to previous page ';
24- // },
12+ getItemAriaLabel : ( type ) => {
13+ if ( type === 'first' ) {
14+ return 'Ves a la primera pàgina ' ;
15+ }
16+ if ( type === 'last' ) {
17+ return "Ves a l'última pàgina" ;
18+ }
19+ if ( type === 'next' ) {
20+ return 'Ves a la pàgina següent ' ;
21+ }
22+ // if (type === 'previous') {
23+ return 'Ves a la pàgina anterior ' ;
24+ } ,
2525 labelRowsPerPage : 'Files per pàgina:' ,
26- // labelDisplayedRows: ({ from, to, count }) =>
27- // `${from}–${to} de ${count !== -1 ? count : `more than ${to}`}`,
26+ labelDisplayedRows : ( { from, to, count } ) =>
27+ `${ from } –${ to } de ${ count !== - 1 ? count : `més de ${ to } ` } ` ,
2828 } ,
2929 } ,
3030 MuiRating : {
@@ -47,26 +47,26 @@ export const caES: Localization = {
4747 closeText : 'Tancat' ,
4848 } ,
4949 } ,
50- // MuiPagination: {
51- // defaultProps: {
52- // 'aria-label': 'Pagination navigation ',
53- // getItemAriaLabel: (type, page, selected) => {
54- // if (type === 'page') {
55- // return `${selected ? '' : 'Go to '}page ${page}`;
56- // }
57- // if (type === 'first') {
58- // return 'Go to first page ';
59- // }
60- // if (type === 'last') {
61- // return 'Go to last page' ;
62- // }
63- // if (type === 'next') {
64- // return 'Go to next page ';
65- // }
66- // // if (type === 'previous') {
67- // return 'Go to previous page ';
68- // },
69- // },
70- // },
50+ MuiPagination : {
51+ defaultProps : {
52+ 'aria-label' : 'Navegació entre pàgines ' ,
53+ getItemAriaLabel : ( type , page , selected ) => {
54+ if ( type === 'page' ) {
55+ return `${ selected ? '' : 'Ves a la ' } pàgina ${ page } ` ;
56+ }
57+ if ( type === 'first' ) {
58+ return 'Ves a la primera pàgina ' ;
59+ }
60+ if ( type === 'last' ) {
61+ return "Ves a l'última pàgina" ;
62+ }
63+ if ( type === 'next' ) {
64+ return 'Ves a la pàgina següent ' ;
65+ }
66+ // if (type === 'previous') {
67+ return 'Ves a la pàgina anterior ' ;
68+ } ,
69+ } ,
70+ } ,
7171 } ,
7272} ;
0 commit comments