Files
simply_cpq/website/node_modules/@mui/material/locale/nnNO.mjs
T
2026-08-07 21:39:30 +02:00

75 lines
2.0 KiB
JavaScript
Raw 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.
import buildFormatNumber from "./utils/buildFormatNumber.mjs";
const formatNumber = buildFormatNumber('nn-NO');
export const 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
}) => `${formatNumber(from)}–${formatNumber(to)} av ${count !== -1 ? formatNumber(count) : `fleire enn ${formatNumber(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';
}
}
}
}
};