2021-11-20 13:52:28 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Localization;
|
|
|
|
|
|
|
|
|
|
internal class LocalizationModule : ZeroModule
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public override void Register(IZeroModuleConfiguration config)
|
|
|
|
|
{
|
2021-11-22 14:29:22 +01:00
|
|
|
config.Services.AddScoped<ICultureResolver, CultureResolver>();
|
2021-11-20 13:52:28 +01:00
|
|
|
config.Services.AddScoped<ILocalizer, Localizer>();
|
|
|
|
|
}
|
|
|
|
|
}
|