ant-design-blazor icon indicating copy to clipboard operation
ant-design-blazor copied to clipboard

Locale DataPicker error

Open carrisian opened this issue 3 years ago • 4 comments

Hello. The DatePicker control is not translated correctly. Also, I can't get the first day of the week to set in Monday and in the example doesn't work correctly. The days of the week always are in English. The word "now" is only translated if I don't show the time in another case doesn't work. This control is necessary for many applications. Is there any chance that You can fix it?

Thank you in advance

carrisian avatar May 18 '21 07:05 carrisian

I believe the first day issue was discussed in PR #1054. But this was never addressed again I think. We could probably discuss this again and see if it is going to solve your problem. Could you be more specific when you wrote

The DatePicker control is not translated correctly.

Which controls? A number of controls are actually translated using json files in here. If there is a translation missing in your language, then you could submit a PR. Use either en-US or zh-CN for reference (not your desired language, as it may not have all properties).

anddrzejb avatar May 25 '21 20:05 anddrzejb

Any update on this? I am still not able to set the first day of the week. This is not working: <Calendar FullScreen="false" Locale="new DatePickerLocale(){ FirstDayOfWeek = DayOfWeek.Monday }" />

UPDATE: When I set the Locale property, the number of the first day of the week is correct (it's monday), but the first label of the day remains Sunday.

Kistelekig98 avatar Jul 14 '22 09:07 Kistelekig98

Hey @Alexbits , would you be interested in taking a look at this question?

ElderJames avatar Jul 15 '22 08:07 ElderJames

Hey @Alexbits , would you be interested in taking a look at this question?

Hey @ElderJames. I'll try.

Alexbits avatar Jul 15 '22 16:07 Alexbits