How to localize standard error messages of validation attributes in ASP.NET Core
问题 How to localize standard error messages of validation attributes in ASP.NET Core (v2.2)? For Example, [Required] attribute has this error message " The xxx field is required. "; [EmailAddress] has " The xxx field is not a valid e-mail address. "; [Compare] has " 'xxx' and 'yyy' do not match. " and so on. In our project we use not English language and I want to find a way how to translate standard error messages without writing them directly in every attribute of every data-model class 回答1: