79 lines
2.0 KiB
JavaScript
79 lines
2.0 KiB
JavaScript
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
exports.ptBR = void 0;
|
||
const ptBR = exports.ptBR = {
|
||
components: {
|
||
MuiBreadcrumbs: {
|
||
defaultProps: {
|
||
expandText: 'Mostrar caminho'
|
||
}
|
||
},
|
||
MuiTablePagination: {
|
||
defaultProps: {
|
||
getItemAriaLabel: type => {
|
||
if (type === 'first') {
|
||
return 'Ir para a primeira página';
|
||
}
|
||
if (type === 'last') {
|
||
return 'Ir para a última página';
|
||
}
|
||
if (type === 'next') {
|
||
return 'Ir para a próxima página';
|
||
}
|
||
// if (type === 'previous') {
|
||
return 'Ir para a página anterior';
|
||
},
|
||
labelRowsPerPage: 'Linhas por página:',
|
||
labelDisplayedRows: ({
|
||
from,
|
||
to,
|
||
count
|
||
}) => `${from}–${to} de ${count !== -1 ? count : `mais de ${to}`}`
|
||
}
|
||
},
|
||
MuiRating: {
|
||
defaultProps: {
|
||
getLabelText: value => `${value} Estrela${value !== 1 ? 's' : ''}`,
|
||
emptyLabelText: 'Vazio'
|
||
}
|
||
},
|
||
MuiAutocomplete: {
|
||
defaultProps: {
|
||
clearText: 'Limpar',
|
||
closeText: 'Fechar',
|
||
loadingText: 'Carregando…',
|
||
noOptionsText: 'Sem opções',
|
||
openText: 'Abrir'
|
||
}
|
||
},
|
||
MuiAlert: {
|
||
defaultProps: {
|
||
closeText: 'Fechar'
|
||
}
|
||
},
|
||
MuiPagination: {
|
||
defaultProps: {
|
||
'aria-label': 'Navegar pela paginação',
|
||
getItemAriaLabel: (type, page, selected) => {
|
||
if (type === 'page') {
|
||
return `${selected ? '' : 'Ir para a '}página ${page}`;
|
||
}
|
||
if (type === 'first') {
|
||
return 'Ir para a primeira página';
|
||
}
|
||
if (type === 'last') {
|
||
return 'Ir para a última página';
|
||
}
|
||
if (type === 'next') {
|
||
return 'Ir para a próxima página';
|
||
}
|
||
// if (type === 'previous') {
|
||
return 'Ir para a página anterior';
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}; |