jQuery-Form-Validator icon indicating copy to clipboard operation
jQuery-Form-Validator copied to clipboard

Custom language object doesn't work in version 2.3.26

Open sutharvishal opened this issue 6 years ago • 2 comments
trafficstars

I have tried using Customer Language Object for override error messages, but it doesn't work. Below is the code I am trying. var myLanguage = { requiredFields: 'You have not answered all required fields' };

$.validate({ language : myLanguage });

sutharvishal avatar Sep 13 '19 12:09 sutharvishal

may be all keys of languages's object required, but no one?

tihoho avatar Nov 27 '19 01:11 tihoho

I used the key as 'requiredField' instead of 'requiredFields' (notice the 's') in the language variable. Now it works perfectly. I am not sure if there is a change in the new version, but if it changed then should be updated in the documentation also :)

sutharvishal avatar Nov 27 '19 07:11 sutharvishal