Use cookie everywhere

This commit is contained in:
hishamco
2020-12-03 17:15:08 +03:00
parent 049ded6f7e
commit 20f1a6175f
7 changed files with 9 additions and 50 deletions

View File

@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Builder;
@ -31,8 +30,6 @@ namespace Oqtane.Extensions
var defaultCulture = localizationManager.GetDefaultCulture();
var supportedCultures = localizationManager.GetSupportedCultures();
CultureInfo.CurrentUICulture = new CultureInfo(defaultCulture);
app.UseRequestLocalization(options => {
options.SetDefaultCulture(defaultCulture)
.AddSupportedUICultures(supportedCultures)