Conversation
|
Right, I think I see what's happened. On function (validator) {
validator.lang = 'ru';
}Because of the update to Instead it looks like the proper way to do it in Validator.useLang('es');It doesn't look like you can set the language on a specific validator instance anymore as it's a static method so I might just update the documentation to reflect that although that is going slightly into documenting It actually looks like there are no instance methods / attributes in |
|
Yes, I agree that to call the prototype method in instance is wrong. But it is important to give a chance to change the language from English to any other language. My question is what is the best way to do it? Maybe we can do it like this: |
No description provided.