You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
914 B
33 lines
914 B
using Syncfusion.Blazor;
|
|
|
|
namespace BlazorApp.Shared
|
|
{
|
|
/// <summary>
|
|
/// Extends ISyncfusionStringLocalizer for applying localization to Syncfusion components.
|
|
/// </summary>
|
|
public class SyncfusionLocalizer : ISyncfusionStringLocalizer
|
|
{
|
|
/// <summary>
|
|
/// Get locale value from the resource file.
|
|
/// </summary>
|
|
/// <param name="key">Locale key for getting the translated text.</param>
|
|
public string GetText(string key)
|
|
{
|
|
return this.ResourceManager.GetString(key);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Access the resource file and get the exact value from the locale key.
|
|
/// </summary>
|
|
public System.Resources.ResourceManager ResourceManager
|
|
{
|
|
get
|
|
{
|
|
|
|
return BlazorApp.Resources.SfResources.ResourceManager;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|