From c7ebfeefba33a66f5280e3afead864d36a91b3a1 Mon Sep 17 00:00:00 2001 From: Alex Goris Date: Sat, 7 Oct 2023 02:30:32 +0200 Subject: [PATCH] fix: Fix localization middleware order --- Web/Startup.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Web/Startup.cs b/Web/Startup.cs index a372cd4a..a9a7960c 100644 --- a/Web/Startup.cs +++ b/Web/Startup.cs @@ -109,6 +109,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseStaticFiles(); app.UseRouting(); + app.UseRequestLocalizationWithSupportedCultures(); app.UseAuthentication(); app.UseAuthorization(); @@ -117,7 +118,5 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapBlazorHub(); endpoints.MapFallbackToPage("/_Host"); }); - - app.UseRequestLocalizationWithSupportedCultures(); } } \ No newline at end of file