2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/ja_JP';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2017-03-28 15:11:33 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/ja_JP';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2017-03-28 15:11:33 +08:00
|
|
|
|
2020-03-12 10:49:32 +08:00
|
|
|
// Merge into a locale object
|
|
|
|
const locale: PickerLocale = {
|
2017-07-03 16:57:11 +08:00
|
|
|
lang: {
|
2017-03-28 15:11:33 +08:00
|
|
|
placeholder: '日付を選択',
|
2024-06-01 11:42:47 +08:00
|
|
|
yearPlaceholder: '年を選択',
|
|
|
|
quarterPlaceholder: '四半期を選択',
|
|
|
|
monthPlaceholder: '月を選択',
|
|
|
|
weekPlaceholder: '週を選択',
|
2017-03-28 15:11:33 +08:00
|
|
|
rangePlaceholder: ['開始日付', '終了日付'],
|
2024-06-01 11:42:47 +08:00
|
|
|
rangeYearPlaceholder: ['開始年', '終了年'],
|
|
|
|
rangeMonthPlaceholder: ['開始月', '終了月'],
|
|
|
|
rangeQuarterPlaceholder: ['開始四半期', '終了四半期'],
|
|
|
|
rangeWeekPlaceholder: ['開始週', '終了週'],
|
2024-09-17 20:15:15 +08:00
|
|
|
shortWeekDays: ['日', '月', '火', '水', '木', '金', '土'],
|
|
|
|
shortMonths: [
|
|
|
|
'1月',
|
|
|
|
'2月',
|
|
|
|
'3月',
|
|
|
|
'4月',
|
|
|
|
'5月',
|
|
|
|
'6月',
|
|
|
|
'7月',
|
|
|
|
'8月',
|
|
|
|
'9月',
|
|
|
|
'10月',
|
|
|
|
'11月',
|
|
|
|
'12月',
|
|
|
|
],
|
2017-07-03 16:57:11 +08:00
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
2017-03-28 15:11:33 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
// All settings at:
|
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
|
|
export default locale;
|