ILocalizer Interface

Provides custom translations for Radzen components. Implement this interface and register it in the DI container to override the built-in English strings.

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public interface ILocalizer

Methods

Getlink

Returns a localized string for the specified key and culture, or null to fall back to the built-in default.

Declaration
public abstract string Get(string key, Globalization.CultureInfo culture)
Parameters
Type Name Description
string key The resource key. Use nameof(RadzenStrings.SomeKey) for compile-time safety.
Globalization.CultureInfo culture The culture to localize for.
Returns
Type Description
stringThe localized string, or null to use the built-in default.
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙