Skip to content

How does the localization feature work for validations? #3117

Answered by stsrki
sturlath asked this question in Q&A
Discussion options

You must be logged in to vote

MessageLocalizer localization works only with data annotations. You need to remove Validator="@ValidateName". Or if you still want to use Validator then set the message by e.ErrorMessage = "something"; inside of ValidateName.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sturlath
Comment options

Answer selected by sturlath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants