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)); }
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.