Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[I10n] Additions to Icelandic (is-IS) locale #39480

Merged
merged 2 commits into from Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions packages/mui-material/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1842,34 +1842,34 @@ export const idID: Localization = {

export const isIS: Localization = {
components: {
// MuiBreadcrumbs: {
// defaultProps: {
// expandText: 'Show path',
// },
// },
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Sýna slóð',
},
},
MuiTablePagination: {
defaultProps: {
// getItemAriaLabel: (type) => {
// if (type === 'first') {
// return 'Go to first page';
// }
// if (type === 'last') {
// return 'Go to last page';
// }
// if (type === 'next') {
// return 'Go to next page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
getItemAriaLabel: (type) => {
if (type === 'first') {
return 'Fara á fyrstu síðu';
}
if (type === 'last') {
return 'Fara á síðustu síðu';
}
if (type === 'next') {
return 'Fara á næstu síðu';
}
// if (type === 'previous') {
return 'Fara á fyrri síðu';
},
labelRowsPerPage: 'Raðir á síðu:',
// labelDisplayedRows: ({ from, to, count }) =>
// `${from}–${to} af ${count !== -1 ? count : `more than ${to}`}`,
labelDisplayedRows: ({ from, to, count }) =>
`${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`,
},
},
MuiRating: {
defaultProps: {
getLabelText: (value) => `${value} ${value === 1 ? 'Stjarna' : 'Stjörnur'}`,
getLabelText: (value) => `${value} ${value === 1 ? 'stjarna' : 'stjörnur'}`,
emptyLabelText: 'Tómt',
},
},
Expand All @@ -1887,27 +1887,27 @@ export const isIS: Localization = {
closeText: 'Loka',
},
},
// MuiPagination: {
// defaultProps: {
// 'aria-label': 'Pagination navigation',
// getItemAriaLabel: (type, page, selected) => {
// if (type === 'page') {
// return `${selected ? '' : 'Go to '}page ${page}`;
// }
// if (type === 'first') {
// return 'Go to first page';
// }
// if (type === 'last') {
// return 'Go to last page';
// }
// if (type === 'next') {
// return 'Go to next page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
// },
MuiPagination: {
defaultProps: {
'aria-label': 'Síðuflakk',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? 'Síða' : 'Fara á síðu'} ${page}`;
}
if (type === 'first') {
return 'Fara á fyrstu síðu';
}
if (type === 'last') {
return 'Fara á síðustu síðu';
}
if (type === 'next') {
return 'Fara á næstu síðu';
}
// if (type === 'previous') {
return 'Fara á fyrri síðu';
},
},
},
},
};

Expand Down