Files

79 lines
2.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.itIT = void 0;
const itIT = exports.itIT = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Visualizza percorso'
}
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: type => {
if (type === 'first') {
return 'Vai alla prima pagina';
}
if (type === 'last') {
return "Vai all'ultima pagina";
}
if (type === 'next') {
return 'Vai alla pagina successiva';
}
// if (type === 'previous') {
return 'Vai alla pagina precedente';
},
labelRowsPerPage: 'Righe per pagina:',
labelDisplayedRows: ({
from,
to,
count
}) => `${from}${to} di ${count !== -1 ? count : `più di ${to}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} Stell${value !== 1 ? 'e' : 'a'}`,
emptyLabelText: 'Vuoto'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Svuota',
closeText: 'Chiudi',
loadingText: 'Caricamento in corso…',
noOptionsText: 'Nessuna opzione',
openText: 'Apri'
}
},
MuiAlert: {
defaultProps: {
closeText: 'Chiudi'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'Navigazione impaginata',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Vai alla '}pagina ${page}`;
}
if (type === 'first') {
return 'Vai alla prima pagina';
}
if (type === 'last') {
return "Vai all'ultima pagina";
}
if (type === 'next') {
return 'Vai alla pagina successiva';
}
// if (type === 'previous') {
return 'Vai alla pagina precedente';
}
}
}
}
};