Sources

KA Khalid Abuhakmeh
Blog

2stories
6 d agolatest
ASP.NET Core 11
Validation messages translated
KAKhalid Abuhakmeh Khalid Abuhakmeh Oct 20

Localize Minimal API validation messages in .NET 11

ASP.NET Core 11 adds built-in localization for validation messages and display names in Minimal APIs and Blazor. Registering AddValidation and AddLocalization, plus culture-specific resx files, is enough to return 400 responses in the caller's language. The author shows a working sample and an integration test across four cultures.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message