Cannot make custom localization in RadzenDatePicker #66

Closed
opened 2026-01-29 17:31:00 +00:00 by claunia · 3 comments
Owner

Originally created by @bazarniy on GitHub (Mar 23, 2021).

Hi guys!

I cannot set custom month names. There are no public properties or methods to generate it.
And look: https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenDatePicker.razor#L199
Fields "months" is private. So inheritence and overriding OnInitialized wouldn't help me

Originally created by @bazarniy on GitHub (Mar 23, 2021). Hi guys! I cannot set custom month names. There are no public properties or methods to generate it. And look: https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenDatePicker.razor#L199 Fields "months" is private. So inheritence and overriding OnInitialized wouldn't help me
Author
Owner

@akorchev commented on GitHub (Mar 23, 2021):

Indeed the RadzenDatePicker uses the CultureInfo to get the month names. The code is a few lines below that.

@akorchev commented on GitHub (Mar 23, 2021): Indeed the RadzenDatePicker uses the CultureInfo to get the month names. The code is a few lines below that.
Author
Owner

@bazarniy commented on GitHub (Mar 23, 2021):

@akorchev But what if I need non global culture there?

@bazarniy commented on GitHub (Mar 23, 2021): @akorchev But what if I need non global culture there?
Author
Owner

@akorchev commented on GitHub (Mar 23, 2021):

Not supported for the time being.

@akorchev commented on GitHub (Mar 23, 2021): Not supported for the time being.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#66