diff --git a/src/Kentico.Community.Portal.Web/Program.cs b/src/Kentico.Community.Portal.Web/Program.cs index 733d629c..094d86c1 100644 --- a/src/Kentico.Community.Portal.Web/Program.cs +++ b/src/Kentico.Community.Portal.Web/Program.cs @@ -1,5 +1,6 @@ using Kentico.Web.Mvc; using Kentico.Xperience.Cloud; +using Microsoft.AspNetCore.Localization; using Vite.AspNetCore.Extensions; var builder = WebApplication.CreateBuilder(args); @@ -29,7 +30,10 @@ .UseAuthentication() .UseKenticoCloud() .UseKentico() - .UseRequestLocalization() + .UseRequestLocalization(new RequestLocalizationOptions + { + DefaultRequestCulture = new RequestCulture("en-US"), + }) .UseStatusCodePagesWithReExecute("/error/{0}") .IfNotDevelopment(env, b => b.UseHsts()) .UseAuthorization()