Completed
Last Updated: 30 Aug 2023 15:16 by ADMIN
Oleg
Created on: 03 Oct 2019 11:11
Category: DatePicker
Type: Feature Request
7
Globalization for Today and Now buttons on the date/time pickers

Hello,

I have an issue with TelerikDatePicker globalization. It works fine at all, but "Today" has the same translation.


I've used code like this:

CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(MyStringLanguage);

And it still works only for "days" and "months". Could you please tell about current situation about localization and globalization or maybe to suggest some different solution.

Thanks for your help.

6 comments
ADMIN
Dimo
Posted on: 30 Aug 2023 15:16

Emerson - make sure you have up-to-date resource (resx) files for our components that contain all localization keys.

Our DatePicker Globalization demo works as expected.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Emerson
Posted on: 30 Aug 2023 15:03

I'm using Telerik Blazor 4.4.0 and this issue still occurs in my app. I'm tryng configure culture in two ways:

 

First way:

In program.cs 

var supportedCultures = new[] { "pt-PT", "en-US" };
var localizationOptions = new RequestLocalizationOptions()
    .AddSupportedCultures(supportedCultures)
    .AddSupportedUICultures(supportedCultures)
    .SetDefaultCulture(supportedCultures[0]);

localizationOptions.RequestCultureProviders = new List<IRequestCultureProvider> {
    new QueryStringRequestCultureProvider()
};

 

Second way:

I tryed this in program.cs and component code-behind

CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(MyStringLanguage);

ADMIN
Marin Bratanov
Posted on: 09 Dec 2019 15:11

This was implemented with the 2.5.0 release that is now live and you can see it in action in the demos: https://demos.telerik.com/blazor-ui/datetimepicker/globalization

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
ADMIN
Marin Bratanov
Posted on: 06 Nov 2019 18:47

Hello Szczepan,

We haven't gotten to tackling this yet. It is coming up pretty soon on our roadmap, and it is planned to be handled before R1 2020. I can suggest you monitor our release notes, we also have an RSS feed for them. Additionally, you can click the Follow button at the top of this feedback portal page to get email notifications for status changes on this particular feature.

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Szczepan
Posted on: 06 Nov 2019 10:32
Is the solution ready?
ADMIN
Marin Bratanov
Posted on: 04 Oct 2019 08:58

Hi Oleg,

I moved this thread to the public feedback portal so you can Follow its progress. Here's a link for you so you can get to it from your email notification: https://feedback.telerik.com/blazor/1432646-globalization-for-today-and-now-buttons-on-the-date-time-pickers.

At this point localization and globalization are things we have in mind, and we will be working actively further down the road. Our immediate plans are to provide more components and more features before we get to them. Some things would work because we obtain them from the framework, but we have not implemented everything.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor