Set default culture
Kuler Master
406
Reputation points
Hello guys,
I am using Microsoft.Extensions.Localization (8.0.11) but for some reason the following code does not work as expected. As you see, I expect the German to be default language but it's always English. Am I missing something?
var supportedCultures = new[] { "de-DE", "en-US" };
var localizationOptions = new RequestLocalizationOptions()
.SetDefaultCulture("de-DE")
.AddSupportedCultures(supportedCultures)
.AddSupportedUICultures(supportedCultures);
Thank you
Sign in to answer