2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/fa_IR';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2017-07-18 13:23:16 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/fa_IR';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2017-07-18 13:23:16 +08:00
|
|
|
|
|
|
|
// Merge into a locale object
|
2020-03-12 10:49:32 +08:00
|
|
|
const locale: PickerLocale = {
|
2017-07-18 13:23:16 +08:00
|
|
|
lang: {
|
|
|
|
placeholder: 'انتخاب تاریخ',
|
2021-02-05 20:34:10 +08:00
|
|
|
yearPlaceholder: 'انتخاب سال',
|
|
|
|
quarterPlaceholder: 'انتخاب فصل',
|
|
|
|
monthPlaceholder: 'انتخاب ماه',
|
|
|
|
weekPlaceholder: 'انتخاب هفته',
|
2017-07-18 13:23:16 +08:00
|
|
|
rangePlaceholder: ['تاریخ شروع', 'تاریخ پایان'],
|
2021-02-05 20:34:10 +08:00
|
|
|
rangeYearPlaceholder: ['سال شروع', 'سال پایان'],
|
2023-03-26 17:19:26 +08:00
|
|
|
rangeQuarterPlaceholder: ['فصل شروع', 'فصل پایان'],
|
2021-02-05 20:34:10 +08:00
|
|
|
rangeMonthPlaceholder: ['ماه شروع', 'ماه پایان'],
|
|
|
|
rangeWeekPlaceholder: ['هفته شروع', 'هفته پایان'],
|
2017-07-18 13:23:16 +08:00
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|