mikeerickson / validatorjs

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
https://www.npmjs.com/package/validatorjs
MIT License
1.77k stars 280 forks source link

Validator.register: TypeError: Cannot set properties of undefined #468

Open vedmant opened 1 year ago

vedmant commented 1 year ago

https://github.com/mikeerickson/validatorjs/issues/467

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [x] Bug fix [ ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview)

Ensure that messages for the language is an object.

Which issue (if any) does this pull request address?

https://github.com/mikeerickson/validatorjs/issues/467

Is there anything you'd like reviewers to focus on?