2021-11-30 14:32:10 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2021-11-23 22:56:22 +01:00
|
|
|
|
|
|
|
|
namespace zero.Localization;
|
|
|
|
|
|
2021-11-30 14:32:10 +01:00
|
|
|
public class LocalizationModule : ZeroModule
|
2021-11-23 22:56:22 +01:00
|
|
|
{
|
2021-11-30 14:32:10 +01:00
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
2021-11-23 22:56:22 +01:00
|
|
|
{
|
|
|
|
|
services.AddScoped<ICultureResolver, CultureResolver>();
|
2021-11-24 13:56:08 +01:00
|
|
|
services.AddScoped<ICultureService, CultureService>();
|
2021-11-26 12:31:33 +01:00
|
|
|
services.AddScoped<ICountryStore, CountryStore>();
|
|
|
|
|
services.AddScoped<ILanguageStore, LanguageStore>();
|
|
|
|
|
services.AddScoped<ITranslationStore, TranslationStore>();
|
2021-11-23 22:56:22 +01:00
|
|
|
services.AddScoped<ILocalizer, Localizer>();
|
|
|
|
|
}
|
|
|
|
|
}
|