mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
Add locale fi_FI (#5674)
This commit is contained in:
parent
1903b75d38
commit
b6eecef255
2
components/calendar/locale/fi_FI.tsx
Normal file
2
components/calendar/locale/fi_FI.tsx
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import fi_FI from '../../date-picker/locale/fi_FI';
|
||||||
|
export default fi_FI;
|
17
components/date-picker/locale/fi_FI.tsx
Normal file
17
components/date-picker/locale/fi_FI.tsx
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import CalendarLocale from 'rc-calendar/lib/locale/fi_FI';
|
||||||
|
import TimePickerLocale from '../../time-picker/locale/fi_FI';
|
||||||
|
import assign from 'object-assign';
|
||||||
|
|
||||||
|
// Merge into a locale object
|
||||||
|
const locale = {
|
||||||
|
lang: assign({
|
||||||
|
placeholder: 'Valitse päivä',
|
||||||
|
rangePlaceholder: ['Alku päivä', 'Loppu päivä'],
|
||||||
|
}, CalendarLocale),
|
||||||
|
timePickerLocale: assign({}, TimePickerLocale),
|
||||||
|
};
|
||||||
|
|
||||||
|
// All settings at:
|
||||||
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||||
|
|
||||||
|
export default locale;
|
47
components/locale-provider/fi_FI.tsx
Normal file
47
components/locale-provider/fi_FI.tsx
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
import moment from 'moment';
|
||||||
|
moment.locale('fi');
|
||||||
|
|
||||||
|
import Pagination from 'rc-pagination/lib/locale/fi_FI';
|
||||||
|
import DatePicker from '../date-picker/locale/fi_FI';
|
||||||
|
import TimePicker from '../time-picker/locale/fi_FI';
|
||||||
|
import Calendar from '../calendar/locale/fi_FI';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
locale: 'fi',
|
||||||
|
Pagination,
|
||||||
|
DatePicker,
|
||||||
|
TimePicker,
|
||||||
|
Calendar,
|
||||||
|
Table: {
|
||||||
|
filterTitle: 'Suodatus valikko',
|
||||||
|
filterConfirm: 'OK',
|
||||||
|
filterReset: 'Tyhjennä',
|
||||||
|
emptyText: 'Ei kohteita',
|
||||||
|
selectAll: 'Valitse kaikki',
|
||||||
|
selectInvert: 'Valitse päinvastoin',
|
||||||
|
},
|
||||||
|
Modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Peruuta',
|
||||||
|
justOkText: 'OK',
|
||||||
|
},
|
||||||
|
Popconfirm: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Peruuta',
|
||||||
|
},
|
||||||
|
Transfer: {
|
||||||
|
notFoundContent: 'Ei löytynyt',
|
||||||
|
searchPlaceholder: 'Etsi täältä',
|
||||||
|
itemUnit: 'kohde',
|
||||||
|
itemsUnit: 'kohdetta',
|
||||||
|
},
|
||||||
|
Select: {
|
||||||
|
notFoundContent: 'Ei löytynyt',
|
||||||
|
},
|
||||||
|
Upload: {
|
||||||
|
uploading: 'Lähetetään...',
|
||||||
|
removeFile: 'Poista tiedosto',
|
||||||
|
uploadError: 'Virhe lähetyksessä',
|
||||||
|
previewFile: 'Esikatsele tiedostoa',
|
||||||
|
},
|
||||||
|
};
|
5
components/time-picker/locale/fi_FI.tsx
Normal file
5
components/time-picker/locale/fi_FI.tsx
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
const locale = {
|
||||||
|
placeholder: 'Valitse aika',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default locale;
|
@ -44,7 +44,7 @@
|
|||||||
"omit.js": "^0.1.0",
|
"omit.js": "^0.1.0",
|
||||||
"prop-types": "^15.5.7",
|
"prop-types": "^15.5.7",
|
||||||
"rc-animate": "~2.3.0",
|
"rc-animate": "~2.3.0",
|
||||||
"rc-calendar": "~8.0.0",
|
"rc-calendar": "~8.1.0",
|
||||||
"rc-cascader": "~0.11.0",
|
"rc-cascader": "~0.11.0",
|
||||||
"rc-checkbox": "~1.5.0",
|
"rc-checkbox": "~1.5.0",
|
||||||
"rc-collapse": "~1.7.0",
|
"rc-collapse": "~1.7.0",
|
||||||
@ -55,7 +55,7 @@
|
|||||||
"rc-input-number": "~3.4.4",
|
"rc-input-number": "~3.4.4",
|
||||||
"rc-menu": "~5.0.9",
|
"rc-menu": "~5.0.9",
|
||||||
"rc-notification": "~1.4.0",
|
"rc-notification": "~1.4.0",
|
||||||
"rc-pagination": "~1.8.0",
|
"rc-pagination": "~1.8.4",
|
||||||
"rc-progress": "~2.1.0",
|
"rc-progress": "~2.1.0",
|
||||||
"rc-radio": "~2.0.0",
|
"rc-radio": "~2.0.0",
|
||||||
"rc-rate": "~2.1.0",
|
"rc-rate": "~2.1.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user