using Syncfusion.Blazor;
namespace BlazorApp.Shared
{
///
/// Extends ISyncfusionStringLocalizer for applying localization to Syncfusion components.
///
public class SyncfusionLocalizer : ISyncfusionStringLocalizer
{
///
/// Get locale value from the resource file.
///
/// Locale key for getting the translated text.
public string GetText(string key)
{
return this.ResourceManager.GetString(key);
}
///
/// Access the resource file and get the exact value from the locale key.
///
public System.Resources.ResourceManager ResourceManager
{
get
{
return BlazorApp.Resources.SfResources.ResourceManager;
}
}
}
}