Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Internationalization #129

Open
matt-allan opened this issue Oct 18, 2017 · 0 comments
Open

Internationalization #129

matt-allan opened this issue Oct 18, 2017 · 0 comments

Comments

@matt-allan
Copy link
Collaborator

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
  • Translate error messages afterwards. This is how I've personally done it. Requires 0 changes to the validator.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant