I need to have a multi-language web application. I was using my code in .net core 2.2 and everything was good. When I migrated to .net core 3 I face to some issues that one of them was using UseRequestLocalization.
I'm using this code in Configure method of startups.cs and after the running project, I see an empty page.
var supportedCultures = new CultureInfo[] {
new CultureInfo ("en-US"),
new CultureInfo ("en"),
GetPersianCulture ("fa-IR"),
GetPersianCulture ("fa"),
};
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("fa"),
SupportedCultures = supportedCultures,
SupportedUICultures = supportedCultures,
});