2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/ar_EG';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
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: ['البداية', 'النهاية'],
|
2024-07-19 06:28:53 +08:00
|
|
|
yearFormat: 'YYYY',
|
|
|
|
dateFormat: 'D/M/YYYY',
|
|
|
|
dayFormat: 'D',
|
|
|
|
dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
|
|
|
|
monthFormat: 'MMMM',
|
|
|
|
monthBeforeYear: true,
|
|
|
|
shortWeekDays: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
|
|
|
shortMonths: [
|
|
|
|
'يناير',
|
|
|
|
'فبراير',
|
|
|
|
'مارس',
|
|
|
|
'إبريل',
|
|
|
|
'مايو',
|
|
|
|
'يونيو',
|
|
|
|
'يوليو',
|
|
|
|
'أغسطس',
|
|
|
|
'سبتمبر',
|
|
|
|
'أكتوبر',
|
|
|
|
'نوفمبر',
|
|
|
|
'ديسمبر',
|
|
|
|
],
|
2019-05-07 14:57:32 +08:00
|
|
|
...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;
|