Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker component day names are not localized #31748

Closed
1 task done
gugol2 opened this issue Aug 10, 2021 · 2 comments
Closed
1 task done

DatePicker component day names are not localized #31748

gugol2 opened this issue Aug 10, 2021 · 2 comments

Comments

@gugol2
Copy link

gugol2 commented Aug 10, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Just change the locale and see that the words "Month" and "Year" are translated but not the abbreviations for the day of the week, it keeps saying:

"Su Mo Tu We Th Fr Sa"

When it should translate them to German and say instead:

"Mo. Di. Mi. Do. Fr. Sa. So."

Right?

What is expected?

Abbreviation names for the week days as:

Mo. Di. Mi. Do. Fr. Sa. So.

What is actually happening?

It is not translating the week day short names to German, it keeps them in English:

Su Mo Tu We Th Fr Sa

Environment Info
antd 4.15.6
React React "17.0.2" with Create React App
System Ubuntu 20.04.2 LTS
Browser Chrome Version 92.0.4515.131 (Official Build) (64-bit)

I saw in the demo with other languages that the weekdays short name was changed:

https://codesandbox.io/s/locale-antd-4-16-11-forked-2go6t?file=/index.js:3371-3375

@afc163
Copy link
Member

afc163 commented Aug 11, 2021

https://codesandbox.io/s/locale-antd-4-16-11-forked-days-short-non-translated-2moj1?file=/index.js

+ import "moment/locale/de";

@afc163 afc163 closed this as completed Aug 11, 2021
@gugol2
Copy link
Author

gugol2 commented Aug 11, 2021

Ok... so not all translations are picked from antd/lib/locale
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants