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.nnNO = void 0;
const nnNO = exports.nnNO = {
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 førre side';
},
labelRowsPerPage: 'Rader per side:',
labelDisplayedRows: ({
from,
to,
count
}) => `${from}${to} av ${count !== -1 ? count : `fleire enn ${to}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `${value} stjerne${value !== 1 ? 'r' : ''}`,
emptyLabelText: 'Tom'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Tøm',
closeText: 'Lukk',
loadingText: 'Lastar inn…',
noOptionsText: 'Ingen alternativ',
openText: 'Opna'
}
},
MuiAlert: {
defaultProps: {
closeText: 'Lukk'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'Navigasjon for paginering',
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 førre side';
}
}
}
}
};