2021-11-20 15:02:28 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/km_KH';
|
|
|
|
import TimePickerLocale from '../../time-picker/locale/km_KH';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2021-11-20 15:02:28 +08:00
|
|
|
|
|
|
|
// Merge into a locale object
|
|
|
|
const locale: PickerLocale = {
|
|
|
|
lang: {
|
|
|
|
placeholder: 'រើសថ្ងៃ',
|
|
|
|
yearPlaceholder: 'រើសឆ្នាំ',
|
|
|
|
quarterPlaceholder: 'រើសត្រីមាស',
|
|
|
|
monthPlaceholder: 'រើសខែ',
|
|
|
|
weekPlaceholder: 'រើសសប្តាហ៍',
|
|
|
|
rangePlaceholder: ['ថ្ងៃចាប់ផ្ដើម', 'ថ្ងៃបញ្ចប់'],
|
|
|
|
rangeYearPlaceholder: ['ឆ្នាំចាប់ផ្ដើម', 'ឆ្នាំបញ្ចប់'],
|
|
|
|
rangeMonthPlaceholder: ['ខែចាប់ផ្ដើម', 'ខែបញ្ចប់'],
|
|
|
|
rangeWeekPlaceholder: ['សប្ដាហ៍ចាប់ផ្ដើម', 'សប្ដាហ៍បញ្ចប់'],
|
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|