diff --git a/src/EventHub.Web/EventHubWebModule.cs b/src/EventHub.Web/EventHubWebModule.cs index d292b53..21523b2 100644 --- a/src/EventHub.Web/EventHubWebModule.cs +++ b/src/EventHub.Web/EventHubWebModule.cs @@ -19,6 +19,7 @@ using Microsoft.OpenApi; using Payment.Web; using StackExchange.Redis; using System.Collections.Generic; +using System.Globalization; using Volo.Abp; using Volo.Abp.Account; using Volo.Abp.AspNetCore.Authentication.OpenIdConnect; @@ -254,6 +255,14 @@ namespace EventHub.Web app.UseDeveloperExceptionPage(); } + app.Use(async (context, next) => + { + var culture = new CultureInfo("en"); + CultureInfo.CurrentCulture = culture; + CultureInfo.CurrentUICulture = culture; + await next(); + }); + app.UseAbpRequestLocalization(options => { options.DefaultRequestCulture = new RequestCulture("en");