I would like to be able to make an application in Portuguese. I already did this with ASP.NET MVC 5 in a very simple way through a NuGet installation.
But I did not find anything similar for the CORE version. I already 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 handle requests in Portuguese, but auto-error messages are still in English:
The description field is required.
How can I configure my application for Portuguese?