From 817a7d81f5b3f07606c4b6f33db8f0f48788878f Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Mon, 31 Mar 2025 10:10:52 +0200 Subject: [PATCH] Set default culture to German (de-DE) Configured the application's default thread culture to "de-DE" using the `CultureInfo` class. This ensures consistent localization and formatting for dates, numbers, and other culture-dependent elements throughout the application. --- FoodsharingSiegen.Server/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FoodsharingSiegen.Server/Program.cs b/FoodsharingSiegen.Server/Program.cs index 59fc6ee..4176bc2 100644 --- a/FoodsharingSiegen.Server/Program.cs +++ b/FoodsharingSiegen.Server/Program.cs @@ -1,3 +1,4 @@ +using System.Globalization; using Blazorise; using Blazorise.Icons.Material; using Blazorise.Material; @@ -34,6 +35,8 @@ builder.Services .AddMaterialProviders() .AddMaterialIcons(); +CultureInfo.DefaultThreadCurrentCulture = new("de-DE"); + var app = builder.Build(); app.ApplyMigrations();