2021-11-23 22:56:22 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Localization;
|
|
|
|
|
|
|
|
|
|
internal static class ServiceCollectionExtensions
|
|
|
|
|
{
|
|
|
|
|
public static IServiceCollection AddZeroLocalization(this IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
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>();
|
|
|
|
|
return services;
|
|
|
|
|
}
|
|
|
|
|
}
|