Files

79 lines
1.9 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.nbNO = void 0;
const nbNO = exports.nbNO = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Vis sti'
}
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: type => {
if (type === 'first') {
return 'Gå til første side';
}
if (type === 'last') {
return 'Gå til siste side';
}
if (type === 'next') {
return 'Gå til neste side';
}
// if (type === 'previous') {
return 'Gå til forrige side';
},
labelRowsPerPage: 'Rader per side:',
labelDisplayedRows: ({
from,
to,
count
}) => `${from}${to} av ${count !== -1 ? count : `mer enn ${to}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} Stjerne${value !== 1 ? 'r' : ''}`,
emptyLabelText: 'Tom'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Tøm',
closeText: 'Lukk',
loadingText: 'Laster inn…',
noOptionsText: 'Ingen alternativer',
openText: 'Åpne'
}
},
MuiAlert: {
defaultProps: {
closeText: 'Lukk'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'Paginering navigasjon',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Gå til '}side ${page}`;
}
if (type === 'first') {
return 'Gå til første side';
}
if (type === 'last') {
return 'Gå til siste side';
}
if (type === 'next') {
return 'Gå til neste side';
}
// if (type === 'previous') {
return 'Gå til forrige side';
}
}
}
}
};