Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom language object doesn't work in version 2.3.26 #744

Open
sutharvishal opened this issue Sep 13, 2019 · 2 comments
Open

Custom language object doesn't work in version 2.3.26 #744

sutharvishal opened this issue Sep 13, 2019 · 2 comments

Comments

@sutharvishal
Copy link

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
});

@tihoho
Copy link

tihoho commented Nov 27, 2019

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

@sutharvishal
Copy link
Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants