Followed Dynamically set the culture from the Accept-Language header to localize my blazor wasm app.
WebUI.csproj
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>Program.cs
builder.Services.AddLocalization(options => options.ResourcesPath = "Resources");Added folder:
Resources Shared.resx Shared.en.resx_Imports.razor
@using WebUI.ResourcesIn view:
@using System.Globalization@inject IStringLocalizer<Shared> loc@CultureInfo.CurrentCulture@loc["countries"]Culture is showing DE-DE. @loc["countries"] just prints countries instead of the localization. Any ideas why?