fix: add german locale in datepicker (#48586)

* 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>
This commit is contained in:
Seb 2024-04-24 19:01:55 +02:00 committed by GitHub
parent b1ef8957ef
commit 3f339fc87f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 5 deletions

View File

@ -8,6 +8,21 @@ 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: {

View File

@ -44449,7 +44449,7 @@ exports[`Locale Provider should display the text as de 1`] = `
tabindex="-1"
type="button"
>
Sept.
Sep
</button>
<button
class="ant-picker-year-btn"
@ -46668,7 +46668,7 @@ exports[`Locale Provider should display the text as de 1`] = `
tabindex="-1"
type="button"
>
Sept.
Sep
</button>
<button
class="ant-picker-year-btn"
@ -47206,7 +47206,7 @@ exports[`Locale Provider should display the text as de 1`] = `
tabindex="-1"
type="button"
>
Okt.
Okt
</button>
<button
class="ant-picker-year-btn"
@ -48301,9 +48301,9 @@ exports[`Locale Provider should display the text as de 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Sept."
title="Sep"
>
Sept.
Sep
</span>
</div>
<span