new localizer works

This commit is contained in:
2022-12-12 11:30:58 +01:00
parent 16ce8b442b
commit 1909746405
3 changed files with 10 additions and 2 deletions
@@ -20,6 +20,7 @@ internal class ZeroLocalizationModule : ZeroModule
services.AddScoped<ICultureService, CultureService>();
services.AddScoped<ILocalizer, ConfigurationLocalizer>();
services.AddScoped<IStringLocalizer, StringLocalizer>();
services.AddScoped(typeof(IStringLocalizer<>), typeof(StringLocalizer<>));
services.Configure<RazorViewEngineOptions>(opts => opts.ViewLocationExpanders.Add(new LanguageViewLocationExpander(LanguageViewLocationExpanderFormat.Suffix)));
services.AddSingleton<IHtmlLocalizerFactory, HtmlLocalizerFactory>();