The errors should be pretty straightforward to translate, but ideally each user of the lib shouldn't have to implement internationalization themselves.
Options:
Translate error messages as they are collected. Requires passing in a translator to the validator itself.
Translate error messages as they are created. The constraint class would need to have access to the translator
The errors should be pretty straightforward to translate, but ideally each user of the lib shouldn't have to implement internationalization themselves.
Options: