aurelia / validatejs

Enables expressive validation using decorators and/or a fluent API.
MIT License
22 stars 23 forks source link

Error message translation #73

Closed JeroenVinke closed 8 years ago

JeroenVinke commented 8 years ago

So I played around a bit with the translation bit (since I need it in a project), and I got it working so I thought I'd open a PR as it may help with https://github.com/aurelia/validatejs/issues/27. I only tried it with the fluent setup, not with the decorators.

Basically it allows you to provide translation services at two levels, a rule specific level and a global level.

image

EisenbergEffect commented 8 years ago

@jdanyow I'm not sure if we can accept this PR but can you have a look soon? We definitely want to make sure there's a way to integrate i18n with validation.

EisenbergEffect commented 8 years ago

Closing this PR for now. There are some discussions in issues regarding i18n support. Please provide feedback there. Thanks!