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] Improve Finnish (fi-FI) locale #13038

Merged
merged 8 commits into from
May 24, 2024
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
2 changes: 1 addition & 1 deletion docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"languageTag": "fi-FI",
"importName": "fiFI",
"localeName": "Finnish",
"missingKeysCount": 4,
"missingKeysCount": 0,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/fiFI.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"languageTag": "fi-FI",
"importName": "fiFI",
"localeName": "Finnish",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/fiFI.ts"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/x-data-grid/src/locales/fiFI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const fiFIGrid: Partial<GridLocaleText> = {
toolbarExportExcel: 'Lataa Excel-muodossa',

// Columns management text
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',
columnsManagementSearchTitle: 'Hae',
columnsManagementNoColumns: 'Ei sarakkeita näytettäväksi',
columnsManagementShowHideAllText: 'Näytä/Piilota kaikki',
columnsManagementReset: 'Palauta',

// Filter panel text
filterPanelAddFilter: 'Lisää suodatin',
Expand Down
30 changes: 15 additions & 15 deletions packages/x-date-pickers/src/locales/fiFI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const fiFIPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Alku',
end: 'Loppu',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Alkamispäivämäärä',
startTime: 'Alkamisaika',
endDate: 'Päättymispäivämäärä',
endTime: 'Päättymisaika',

// Action bar
cancelButtonLabel: 'Peruuta',
Expand All @@ -47,7 +47,7 @@ const fiFIPickers: Partial<PickersLocaleText<any>> = {
`Valitse ${views[view]}. ${time === null ? 'Ei aikaa valittuna' : `Valittu aika on ${adapter.format(time, 'fullTime')}`}`,
hoursClockNumberText: (hours) => `${hours} tuntia`,
minutesClockNumberText: (minutes) => `${minutes} minuuttia`,
secondsClockNumberText: (seconds) => `${seconds} sekunttia`,
secondsClockNumberText: (seconds) => `${seconds} sekuntia`,

// Digital clock labels
selectViewText: (view) => `Valitse ${views[view]}`,
Expand All @@ -67,7 +67,7 @@ const fiFIPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `Valitse aika, valittu aika on ${utils.format(value, 'fullTime')}`
: 'Valitse aika',
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'Tyhjennä arvo',

// Table labels
timeTableLabel: 'valitse aika',
Expand All @@ -84,17 +84,17 @@ const fiFIPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'Vuosi',
month: 'Kuukausi',
day: 'Päivä',
weekDay: 'Viikonpäivä',
hours: 'Tunnit',
minutes: 'Minuutit',
seconds: 'Sekunnit',
meridiem: 'Iltapäivä',

// Common
// empty: 'Empty',
empty: 'Tyhjä',
};

export const fiFI = getPickersLocalization(fiFIPickers);