Skip to content

Commit

Permalink
[l10n] Improve Finnish (fi-FI) locale (mui#13038)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Kukkonen <99816212+sambbaahh@users.noreply.github.com>
  • Loading branch information
samiiku authored and thomasmoon committed Sep 6, 2024
1 parent 1dd09f6 commit 18695f5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
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);

0 comments on commit 18695f5

Please sign in to comment.