Skip to content

Commit

Permalink
Add default request culture
Browse files Browse the repository at this point in the history
  • Loading branch information
liamgold authored Feb 14, 2024
1 parent 3893e77 commit d8ceb3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Kentico.Community.Portal.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d8ceb3f

Please sign in to comment.