Add localization service to Oqtane.Client

This commit is contained in:
hishamco
2020-09-29 18:28:30 +03:00
parent accf947afd
commit 7f28c5f2ff
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,9 @@ namespace Oqtane.Client
builder.Services.AddSingleton(httpClient);
builder.Services.AddOptions();
// Register localization services
builder.Services.AddLocalization(options => options.ResourcesPath = "Resources");
// register auth services
builder.Services.AddAuthorizationCore();
builder.Services.AddScoped<IdentityAuthenticationStateProvider>();