2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/ar_EG';
|
2019-05-07 14:57:32 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/ar_EG';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2019-05-07 14:57:32 +08:00
|
|
|
|
|
|
|
// Merge into a locale object
|
2020-03-12 10:49:32 +08:00
|
|
|
const locale: PickerLocale = {
|
2019-05-07 14:57:32 +08:00
|
|
|
lang: {
|
|
|
|
placeholder: 'اختيار التاريخ',
|
|
|
|
rangePlaceholder: ['البداية', 'النهاية'],
|
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
2019-06-14 00:03:23 +08:00
|
|
|
dateFormat: 'DD-MM-YYYY',
|
|
|
|
monthFormat: 'MM-YYYY',
|
|
|
|
dateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
|
|
|
|
weekFormat: 'wo-YYYY',
|
2019-05-07 14:57:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|