2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/id_ID';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2018-11-06 18:50:37 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/id_ID';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2018-11-06 18:50:37 +08:00
|
|
|
|
|
|
|
// Merge into a locale object
|
2020-03-12 10:49:32 +08:00
|
|
|
const locale: PickerLocale = {
|
2018-11-06 18:50:37 +08:00
|
|
|
lang: {
|
|
|
|
placeholder: 'Pilih tanggal',
|
2024-04-19 13:38:40 +08:00
|
|
|
yearPlaceholder: 'Pilih tahun',
|
|
|
|
quarterPlaceholder: 'Pilih kuartal',
|
|
|
|
monthPlaceholder: 'Pilih bulan',
|
|
|
|
weekPlaceholder: 'Pilih minggu',
|
|
|
|
rangePlaceholder: ['Tanggal awal', 'Tanggal akhir'],
|
|
|
|
rangeYearPlaceholder: ['Tahun awal', 'Tahun akhir'],
|
|
|
|
rangeQuarterPlaceholder: ['Kuartal awal', 'Kuartal akhir'],
|
|
|
|
rangeMonthPlaceholder: ['Bulan awal', 'Bulan akhir'],
|
|
|
|
rangeWeekPlaceholder: ['Minggu awal', 'Minggu akhir'],
|
2018-11-06 18:50:37 +08:00
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|