Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization #42

Open
pupeno opened this issue Aug 2, 2015 · 3 comments
Open

Internationalization #42

pupeno opened this issue Aug 2, 2015 · 3 comments

Comments

@pupeno
Copy link

pupeno commented Aug 2, 2015

Have you worked on internationalizing the error messages? It would seem this library has the same design problem as ActiveRecord in that it's impossible to translate it to languages where the subject is not the first word in the sentence. Am I correct?

@michaelklishin
Copy link
Owner

@pupeno I haven't worked on i18n. You can specify custom error messages. The primary thing missing there, perhaps, is templating — using Stencil for that sounds optimal.

@pupeno
Copy link
Author

pupeno commented Aug 2, 2015

The fact that the error messages are such as "can't be blank" instead of ":field-name can't be blank" forces one specify custom error messages for all validations if one wants to translate them.

@michaelklishin
Copy link
Owner

@pupeno that's exactly what templating would help with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants