New to Telerik UI for .NET MAUIStart a free 30-day trial

ILocalize

Interface

Implementations of this interface must convert platform-specific locales to a value supported in .NET because only valid .NET cultures can have their RESX resources loaded and used.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public interface ILocalize

Methods

This method must evaluate platform-specific locale settings and convert them (when necessary) to a valid .NET locale.

C#
CultureInfo GetCurrentCultureInfo()
Returns:

CultureInfo

CurrentCulture and CurrentUICulture must be set in the platform project, because the Thread object can't be accessed in a PCL.

C#
void SetLocale(CultureInfo cultureInfo)
Parameters:cultureInfoCultureInfo