You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I added ExpressiveAnnotations to my MVC project. That works fine but I have a problem with different languages for the error message. If I use below notation in view model class for one attribute, the error message is shown different language. "RequiredAttribute_ValidationError" is exist shared localized file.
[Required(ErrorMessage = "RequiredAttribute_ValidationError")]
I use "[RequiredIf("name != null", ErrorMessage = "RequiredAttribute_ValidationError")]" notation in view model class, error message is shown as string "RequiredAttribute_ValidationError" in related field in Html page.
How to use "ExpressiveAnnotations" with multi-languages?
The text was updated successfully, but these errors were encountered:
Hi,
I added ExpressiveAnnotations to my MVC project. That works fine but I have a problem with different languages for the error message. If I use below notation in view model class for one attribute, the error message is shown different language. "RequiredAttribute_ValidationError" is exist shared localized file.
[Required(ErrorMessage = "RequiredAttribute_ValidationError")]
I use "[RequiredIf("name != null", ErrorMessage = "RequiredAttribute_ValidationError")]" notation in view model class, error message is shown as string "RequiredAttribute_ValidationError" in related field in Html page.
How to use "ExpressiveAnnotations" with multi-languages?
The text was updated successfully, but these errors were encountered: