-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Hello, I use mvc.net 5 and jquery-validation-unobtrusive, jquery-validation(localization)
For localization error message i use lib
https://github.com/jzaefferer/jquery-validation
But localization not work with your lib jquery-validation-unobtrusive
I test why not work this issue
jquery-validation/jquery-validation#1736
Whether it is possible to correct it and to add a feature for interaction with this library?
My test post
Hello, I test file jquery.validate.unobtrusive.js (rename to txt for attach)
jquery.validate.unobtrusive.txt
in the line 212 - message: message,
I replace to - message: "",
Then error message localization fo me, this fine work ...
You can make changes to your library what it would clean off messages the created jquery.validate.unobtrusive?
Many probably face it when using asp.net mvc 5
And one more test
https://jsfiddle.net/SanteR1/p54vravj/
If clear data-val-required="The field Название is required"
to
data-val-required=""
and run jsfiddle test then error message is localization to russian (or in any other localization, depending on connection of message_##.js)