Change culture?

0 Answers 6 Views
General Discussions
Michel
Top achievements
Rank 1
Michel asked on 09 Jul 2025, 01:16 PM

I am using Localization using ResourceManager. I have created various TelerikResource resx files with various languages.

I have added various Localization keys from various Telerik controls in there and translated them.

In App.xaml.cs constructor I call: 

            TelerikLocalizationManager.Manager.ResourceManager = TelerikResource.ResourceManager;
            InitializeComponent();

This works fine and my Telerik controls are translated.

Now the user can change the culture from the application. I call this method:

    public void SetCulture(CultureInfo culture)
    {
        MobileGeneratedLocalization.Culture = culture;
        TelerikResource.Culture = culture;
        TelerikLocalizationManager.Manager.ResourceManager = TelerikResource.ResourceManager;
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(null));
    }
My normal translation (MobileGeneratedLocalization) reflects the selected culture but the Telerik controls keep their original culture/language? Even after reloading the page. How can I force the new culture for the Telerik controls?
Didi
Telerik team
commented on 11 Jul 2025, 01:23 PM

Hi Michel,

Could you please send a sample app in which the issue happens? I do not need the complete approach, one control and two .resx files for two different languages are enough. I want to review the way how the localization is set and debug the issue on my side. 

In general, when refreshing the page the localization should apply, however this may depends on the approach used - singleton or transient. So to localize the controls you need to reload the page, but you shared you reload it. Also, we have the following feature request logged: https://feedback.telerik.com/maui/1611430-consider-support-for-control-localization-on-the-fly - you can cast your vote for this. 

If you do not want to share the project here in the forum, you can open a support ticket and attach it there. 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Share this question
or