Skip to content

Commit

Permalink
[l10n] Add Icelandic (is-IS) locale (mui#19538)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelbjornsson authored and EsoterikStare committed Feb 13, 2020
1 parent 73edd4d commit c58b0d1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const theme = createMuiTheme({
| Finnish | fi-FI | `fiFI` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
| Icelandic | is-IS | `isIS` |
| Indonesian | id-ID | `idID` |
| Italian | it-IT | `itIT` |
| Japanese | ja-JP | `jaJP` |
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const faIR: object;
export const fiFI: object;
export const frFR: object;
export const idID: object;
export const isIS: object;
export const itIT: object;
export const jaJP: object;
export const koKR: object;
Expand Down
25 changes: 25 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,31 @@ export const frFR = {
},
};

export const isIS = {
props: {
MuiTablePagination: {
backIconButtonText: 'Fyrri síða',
labelRowsPerPage: 'Raðir á síðu:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} af ${count}`,
nextIconButtonText: 'Næsta síða',
},
MuiRating: {
getLabelText: value => `${value} ${value === 1 ? 'Stjarna' : 'Stjörnur'}`,
emptyLabelText: 'Tómt',
},
MuiAutocomplete: {
clearText: 'Hreinsa',
closeText: 'Loka',
loadingText: 'Hlaða…',
noOptionsText: 'Engar niðurstöður',
openText: 'Opna',
},
MuiAlert: {
closeText: 'Loka',
},
},
};

export const idID = {
props: {
MuiTablePagination: {
Expand Down

0 comments on commit c58b0d1

Please sign in to comment.