jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
182 stars 35 forks source link

Does not change DateFormat, TimePicker24Hour and WeekOfDay on Culture change #89

Closed marcOcram closed 1 year ago

marcOcram commented 1 year ago

If the Culture changes to another culture the formats and short day names are not updated accordingly. You can see that in the following animation.

The interval above the picker updates correctly.

DateRangePicker

A (not complete) workaround is to set the DateFormat, TimePicker24Hour and FirstDayOfWeek of BlazorDateRangePicker manually. The short day names can not be updated manually as they are set once inside Calendar.

A fix would be to update the values of these parameters if the culture changes but only if they are not explicitly set by the user.

jdtcn commented 1 year ago

Hello, I fixed this behavior and also made it possible to set your own names for the days. Please check it out in version 4.4.0

marcOcram commented 1 year ago

Looks great! Thanks!