LocalizationServiceCollectionExtensions.AddLocalization LocalizationServiceCollectionExtensions.AddLocalization LocalizationServiceCollectionExtensions.AddLocalization Method

Definition

Overloads

AddLocalization(IServiceCollection) AddLocalization(IServiceCollection) AddLocalization(IServiceCollection)

Adds services required for application localization.

AddLocalization(IServiceCollection, Action<LocalizationOptions>) AddLocalization(IServiceCollection, Action<LocalizationOptions>) AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Adds services required for application localization.

AddLocalization(IServiceCollection) AddLocalization(IServiceCollection) AddLocalization(IServiceCollection)

Adds services required for application localization.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddLocalization : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLocalization (services As IServiceCollection) As IServiceCollection

Parameters

Returns

The IServiceCollection so that additional calls can be chained.

AddLocalization(IServiceCollection, Action<LocalizationOptions>) AddLocalization(IServiceCollection, Action<LocalizationOptions>) AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Adds services required for application localization.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
static member AddLocalization : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLocalization (services As IServiceCollection, setupAction As Action(Of LocalizationOptions)) As IServiceCollection

Parameters

setupAction
Action<LocalizationOptions>

An Action<T> to configure the LocalizationOptions.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to