From 2a2f6308c11d7c841b9b572eb7c837e6ba377666 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Thu, 8 Feb 2024 15:20:49 -0500 Subject: [PATCH] added request localization midware --- .../src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs b/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs index 73dad5a9..01c51d2a 100644 --- a/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs +++ b/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs @@ -7,11 +7,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System; using System.Linq; -using EShopOnAbp.WebGateway.Aggregations; -using EShopOnAbp.WebGateway.Aggregations.Localization; -using Microsoft.AspNetCore.Http; using Volo.Abp; -using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations; using Volo.Abp.Modularity; namespace EShopOnAbp.WebGateway; @@ -73,6 +69,7 @@ public class EShopOnAbpWebGatewayModule : AbpModule app.UseCorrelationId(); app.UseCors(); + app.UseAbpRequestLocalization(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization();