Skip to content

Commit

Permalink
[l10n] Add Finnish (fi-FI) locale (#19471)
Browse files Browse the repository at this point in the history
  • Loading branch information
SampsaKaskela authored Jan 30, 2020
1 parent 5c84559 commit 3adf9f6
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 @@ -34,6 +34,7 @@ const theme = createMuiTheme({
| Czech | cs-CZ | `csCZ` |
| Dutch | nl-NL | `nlNL` |
| English (United States) | en-US | `enUS` |
| Finnish | fi-FI | `fiFI` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
| Indonesian | id-ID | `idID` |
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 @@ -6,6 +6,7 @@ export const deDE: object;
export const enUS: object;
export const esES: object;
export const faIR: object;
export const fiFI: object;
export const frFR: object;
export const idID: object;
export const itIT: 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 @@ -218,6 +218,31 @@ export const faIR = {
},
};

export const fiFI = {
props: {
MuiTablePagination: {
backIconButtonText: 'Edellinen sivu',
labelRowsPerPage: 'Rivejä per sivu:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} / ${count}`,
nextIconButtonText: 'Seuraava sivu',
},
MuiRating: {
getLabelText: value => `${value} Täht${value !== 1 ? 'eä' : 'i'}`,
emptyLabelText: 'Tyhjä',
},
MuiAutocomplete: {
clearText: 'Tyhjennä',
closeText: 'Sulje',
loadingText: 'Ladataan…',
noOptionsText: 'Ei valintoja',
openText: 'Avaa',
},
MuiAlert: {
closeText: 'Sulje',
},
},
};

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

0 comments on commit 3adf9f6

Please sign in to comment.