Skip to content

Commit

Permalink
admin default culture (currency)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-zhur committed Aug 19, 2024
1 parent 64f7a70 commit 11be964
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OneShelf.Admin/OneShelf.Admin.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Globalization;
using OneShelf.Admin.Web.Models;
using OneShelf.Billing.Api.Client;
using OneShelf.Common.Database.Songs;
Expand All @@ -22,6 +23,16 @@

var app = builder.Build();

app.UseRequestLocalization(o =>
{
var defaultCulture = "en-US";
o.SupportedCultures = new List<CultureInfo>
{
new(defaultCulture),
};
o.SetDefaultCulture(defaultCulture);
});

// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
Expand Down

0 comments on commit 11be964

Please sign in to comment.