Skip to content

Commit

Permalink
Removed Localization packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Apr 26, 2024
1 parent ff62b5c commit c37e065
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions Library/Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Localization" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.4" />
<PackageReference Include="MudBlazor" Version="6.18.0" />
<PackageReference Include="MudBlazor.Markdown" Version="0.1.3" />
</ItemGroup>
Expand Down
12 changes: 0 additions & 12 deletions Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using Library.Pages;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Localization;
using Microsoft.Extensions.Localization;
using MudBlazor;
using MudBlazor.Services;
using Tailwind;
Expand All @@ -18,8 +16,6 @@
builder.Services.AddMudMarkdownServices();
builder.Services.AddScoped<ClipBoardService>();

builder.Services.AddLocalization(options => options.ResourcesPath = "Resources");

var app = builder.Build();

// Configure the HTTP request pipeline.
Expand All @@ -36,14 +32,6 @@

app.UseRouting();

var supportedCultures = new[] { "de-DE", "en-DE" };
var localizationOptions = new RequestLocalizationOptions()
.AddSupportedCultures(supportedCultures);
localizationOptions.RequestCultureProviders.Clear();
localizationOptions.AddInitialRequestCultureProvider(new CookieRequestCultureProvider());
app.UseRequestLocalization(localizationOptions);


/*
app.RunTailwind("tailwind");
*/
Expand Down
1 change: 0 additions & 1 deletion Server/Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.4" />
<PackageReference Include="Tailwind.Extensions.AspNetCore" Version="1.0.0" />
</ItemGroup>

Expand Down

0 comments on commit c37e065

Please sign in to comment.