diff --git a/WorkFlow.API/Program.cs b/WorkFlow.API/Program.cs index 49a1e42..cd50234 100644 --- a/WorkFlow.API/Program.cs +++ b/WorkFlow.API/Program.cs @@ -3,6 +3,7 @@ using DigitalData.UserManager.Application; using Microsoft.EntityFrameworkCore; using WorkFlow.Infrastructure; using Microsoft.AspNetCore.Authentication.Cookies; +using DigitalData.Core.API; var builder = WebApplication.CreateBuilder(args); var config = builder.Configuration; @@ -11,6 +12,7 @@ var config = builder.Configuration; var cnn_str = config.GetConnectionString("Default") ?? throw new ("Default connection string not found."); builder.Services.AddDbContext(options => options.UseSqlServer(cnn_str).EnableDetailedErrors()); builder.Services.AddWorkFlow().AddUserManager(); +builder.Services.AddCookieBasedLocalizer(); builder.Services.AddControllers(); @@ -42,6 +44,8 @@ app.UseAuthentication(); app.UseAuthorization(); +app.UseCookieBasedLocalizer("de-DE"); + app.MapControllers(); app.Run(); \ No newline at end of file