1
I would like to be able to make an application in Portuguese. I was already doing this with ASP.NET MVC 5 in a super simple way through a Nuget installation.
But I did not find anything similar for the CORE version. I’ve used the configuration:
var supportedCultures = new[] {
new CultureInfo("pt-BR")
};
app.UseRequestLocalization(new RequestLocalizationOptions {
DefaultRequestCulture = new RequestCulture("pt-BR"),
// Formatting numbers, dates, etc.
SupportedCultures = supportedCultures,
// UI strings that we have localized.
SupportedUICultures = supportedCultures
});
to treat the requests located in Portuguese, but automatic error messages are still in English:
The Description field is required.
How can I set my application to English?