Kimmo Saari
8 years ago
5 changed files with 73 additions and 2 deletions
@ -0,0 +1,2 @@ |
|||
import fi_FI from '../../date-picker/locale/fi_FI'; |
|||
export default fi_FI; |
@ -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; |
@ -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', |
|||
}, |
|||
}; |
@ -0,0 +1,5 @@ |
|||
const locale = { |
|||
placeholder: 'Valitse aika', |
|||
}; |
|||
|
|||
export default locale; |
Loading…
Reference in new issue