Skip to content

Commit 11be964

Browse files
committed
admin default culture (currency)
1 parent 64f7a70 commit 11be964

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

OneShelf.Admin/OneShelf.Admin.Web/Program.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Globalization;
12
using OneShelf.Admin.Web.Models;
23
using OneShelf.Billing.Api.Client;
34
using OneShelf.Common.Database.Songs;
@@ -22,6 +23,16 @@
2223

2324
var app = builder.Build();
2425

26+
app.UseRequestLocalization(o =>
27+
{
28+
var defaultCulture = "en-US";
29+
o.SupportedCultures = new List<CultureInfo>
30+
{
31+
new(defaultCulture),
32+
};
33+
o.SetDefaultCulture(defaultCulture);
34+
});
35+
2536
// Configure the HTTP request pipeline.
2637
if (!app.Environment.IsDevelopment())
2738
{

0 commit comments

Comments
 (0)