Table of Contents

Class TlumachSyncfusionBlazorServiceCollectionExtensions

Namespace
Tlumach.Syncfusion.Blazor
Assembly
Tlumach.Syncfusion.Blazor.dll

Registers the Syncfusion Blazor integration of Tlumach.

public static class TlumachSyncfusionBlazorServiceCollectionExtensions
Inheritance
TlumachSyncfusionBlazorServiceCollectionExtensions
Inherited Members

Methods

AddTlumachSyncfusionBlazor(IServiceCollection, Action<TlumachSyncfusionBlazorOptions>?)

Makes the built-in texts of Syncfusion Blazor components come from Tlumach in the culture of the user.

The method registers a scoped TlumachSyncfusionLocalizer as the Syncfusion.Blazor.ISyncfusionStringLocalizer of Syncfusion, replacing the default localizer, so that Syncfusion asks Tlumach for every text and shows its built-in English text for the keys that Tlumach does not have.

It also calls AddTlumachBlazor(IServiceCollection, Action<TlumachBlazorOptions>?), whose options can still be set with another call of that method. The method can be called before or after AddSyncfusionBlazor. A later registration of another Syncfusion.Blazor.ISyncfusionStringLocalizer turns the integration off. A repeated call only applies configure to the options of the first call.

public static IServiceCollection AddTlumachSyncfusionBlazor(this IServiceCollection services, Action<TlumachSyncfusionBlazorOptions>? configure = null)

Parameters

services IServiceCollection

The services to add to.

configure Action<TlumachSyncfusionBlazorOptions>

A callback that configures the options.

Returns

IServiceCollection

The value of services.