mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
3f339fc87f
* add german locale datepicker * only change short weeks and months * fix * Update index.test.tsx.snap Signed-off-by: lijianan <574980606@qq.com> * Update index.test.tsx.snap Signed-off-by: lijianan <574980606@qq.com> * test: update snap --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: lijianan <574980606@qq.com>
37 lines
764 B
TypeScript
37 lines
764 B
TypeScript
import CalendarLocale from 'rc-picker/lib/locale/de_DE';
|
|
|
|
import TimePickerLocale from '../../time-picker/locale/de_DE';
|
|
import type { PickerLocale } from '../generatePicker';
|
|
|
|
// Merge into a locale object
|
|
const locale: PickerLocale = {
|
|
lang: {
|
|
placeholder: 'Datum auswählen',
|
|
rangePlaceholder: ['Startdatum', 'Enddatum'],
|
|
shortWeekDays: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
|
shortMonths: [
|
|
'Jan',
|
|
'Feb',
|
|
'Mär',
|
|
'Apr',
|
|
'Mai',
|
|
'Jun',
|
|
'Jul',
|
|
'Aug',
|
|
'Sep',
|
|
'Okt',
|
|
'Nov',
|
|
'Dez',
|
|
],
|
|
...CalendarLocale,
|
|
},
|
|
timePickerLocale: {
|
|
...TimePickerLocale,
|
|
},
|
|
};
|
|
|
|
// All settings at:
|
|
// https://github.com/ant-design/ant-design/issues/424
|
|
|
|
export default locale;
|