2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/th_TH';
|
2017-07-04 17:54:36 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/th_TH';
|
2020-03-12 10:49:32 +08:00
|
|
|
import { PickerLocale } from '../generatePicker';
|
2017-07-04 17:54:36 +08:00
|
|
|
|
|
|
|
// Merge into a locale object
|
2020-03-12 10:49:32 +08:00
|
|
|
const locale: PickerLocale = {
|
2018-08-07 23:00:34 +08:00
|
|
|
lang: {
|
2017-07-04 17:54:36 +08:00
|
|
|
placeholder: 'เลือกวันที่',
|
2020-10-02 20:05:58 +08:00
|
|
|
yearPlaceholder: 'เลือกปี',
|
|
|
|
quarterPlaceholder: 'เลือกไตรมาส',
|
|
|
|
monthPlaceholder: 'เลือกเดือน',
|
|
|
|
weekPlaceholder: 'เลือกสัปดาห์',
|
2017-07-04 17:54:36 +08:00
|
|
|
rangePlaceholder: ['วันเริ่มต้น', 'วันสิ้นสุด'],
|
2020-10-02 20:05:58 +08:00
|
|
|
rangeYearPlaceholder: ['ปีเริ่มต้น', 'ปีสิ้นสุด'],
|
|
|
|
rangeMonthPlaceholder: ['เดือนเริ่มต้น', 'เดือนสิ้นสุด'],
|
|
|
|
rangeWeekPlaceholder: ['สัปดาห์เริ่มต้น', 'สัปดาห์สิ้นสุด'],
|
2018-08-07 23:00:34 +08:00
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
2017-07-04 17:54:36 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|