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

[l10n] Add Finnish (fi-FI) locale #19471

Merged
merged 2 commits into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
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
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