@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
75 lines • 2.06 kB
JavaScript
import buildFormatNumber from "./utils/buildFormatNumber.mjs";
const formatNumber = buildFormatNumber('nl-NL');
export const nlNL = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Pad tonen'
}
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: type => {
if (type === 'first') {
return 'Ga naar eerste pagina';
}
if (type === 'last') {
return 'Ga naar laatste pagina';
}
if (type === 'next') {
return 'Ga naar volgende pagina';
}
// if (type === 'previous') {
return 'Ga naar vorige pagina';
},
labelRowsPerPage: 'Regels per pagina:',
labelDisplayedRows: ({
from,
to,
count
}) => `${formatNumber(from)}–${formatNumber(to)} van ${count !== -1 ? formatNumber(count) : `meer dan ${formatNumber(to)}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} Ster${value !== 1 ? 'ren' : ''}`,
emptyLabelText: 'Leeg'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Wissen',
closeText: 'Sluiten',
loadingText: 'Laden…',
noOptionsText: 'Geen opties',
openText: 'Openen'
}
},
MuiAlert: {
defaultProps: {
closeText: 'Sluiten'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'Navigatie via paginering',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Ga naar '}pagina ${page}`;
}
if (type === 'first') {
return 'Ga naar eerste pagina';
}
if (type === 'last') {
return 'Ga naar laatste pagina';
}
if (type === 'next') {
return 'Ga naar volgende pagina';
}
// if (type === 'previous') {
return 'Ga naar vorige pagina';
}
}
}
}
};