I implemented the Localization on my project, and I got almost all of them. But the Column Menus and some drop downs aren't translating.
How can I achieve that?
Implementation
Program.cs
// register a custom localizer for the Telerik components, after registering the Telerik services builder.Services.AddSingleton<ITelerikStringLocalizer, TelerikLocalizer>(); builder.Services.AddLocalization();
TelerikLocalizer.cs
public class TelerikLocalizer : ITelerikStringLocalizer
{
private readonly IStringLocalizer<Resources> globalLocalizer;
public TelerikLocalizer(IStringLocalizer<Resources> globalLocalizer)
{
this.globalLocalizer = globalLocalizer;
}
public string this[string name] => GetStringFromResource(name);
public string GetStringFromResource(string key)
{
var localString = Resources.ResourceManager.GetString(key, Resources.Culture);
if (string.IsNullOrWhiteSpace(localString))
{
return globalLocalizer.GetString(key);
}
return localString;
}
}
I have a list of about 19 languages
Source: https://github.com/telerik/blazor-ui/tree/master/common/localization