mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
ef6767d6f2
* fix: missed translation in ar * feat(i18n): add changelog * fix: missed translation in ar * fix: rebase master * fix: remove changelog * Update CHANGELOG.en-US.md Signed-off-by: lijianan <574980606@qq.com> * Update ar_EG.ts Signed-off-by: lijianan <574980606@qq.com> * Update index.test.tsx.snap Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: lijianan <574980606@qq.com>
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
import CalendarLocale from 'rc-picker/lib/locale/ar_EG';
|
|
|
|
import TimePickerLocale from '../../time-picker/locale/ar_EG';
|
|
import type { PickerLocale } from '../generatePicker';
|
|
|
|
// Merge into a locale object
|
|
const locale: PickerLocale = {
|
|
lang: {
|
|
placeholder: 'اختيار التاريخ',
|
|
rangePlaceholder: ['البداية', 'النهاية'],
|
|
yearFormat: 'YYYY',
|
|
dateFormat: 'D/M/YYYY',
|
|
dayFormat: 'D',
|
|
dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
|
|
monthFormat: 'MMMM',
|
|
monthBeforeYear: true,
|
|
shortWeekDays: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
|
shortMonths: [
|
|
'يناير',
|
|
'فبراير',
|
|
'مارس',
|
|
'إبريل',
|
|
'مايو',
|
|
'يونيو',
|
|
'يوليو',
|
|
'أغسطس',
|
|
'سبتمبر',
|
|
'أكتوبر',
|
|
'نوفمبر',
|
|
'ديسمبر',
|
|
],
|
|
...CalendarLocale,
|
|
},
|
|
timePickerLocale: {
|
|
...TimePickerLocale,
|
|
},
|
|
dateFormat: 'DD-MM-YYYY',
|
|
monthFormat: 'MM-YYYY',
|
|
dateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
|
|
weekFormat: 'wo-YYYY',
|
|
};
|
|
|
|
// All settings at:
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
export default locale;
|