Skip to content

Commit

Permalink
add norwegian locale (#29010)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiftire authored Nov 13, 2021
1 parent c545cca commit 6ef2304
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions packages/material-ui/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,56 @@ export const nlNL: Localization = {
},
};

export const nbNO: Localization = {
props: {
MuiBreadcrumbs: {
expandText: 'Vis sti',
},
MuiTablePagination: {
backIconButtonText: 'Forrige side',
labelRowsPerPage: 'Rader pr side:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to} av ${count !== -1 ? count : `flere enn ${to}`}`,
nextIconButtonText: 'Neste side',
},
MuiRating: {
getLabelText: (value) => `${value} Stjerne${value !== 1 ? 'r' : ''}`,
emptyLabelText: 'Tom',
},
MuiAutocomplete: {
clearText: 'Tøm',
closeText: 'Lukk',
loadingText: 'Laster…',
noOptionsText: 'Ingen valgalternativer',
openText: 'Åpen',
},
MuiAlert: {
closeText: 'Lukk',
},
MuiPagination: {
'aria-label': 'Sidenavigasjon',
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';
}
return undefined;
},
},
},
};

export const plPL: Localization = {
props: {
MuiBreadcrumbs: {
Expand Down

0 comments on commit 6ef2304

Please sign in to comment.