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

Feature request: i18n translation of error messages #9

Open
zyllorion opened this issue Feb 20, 2015 · 1 comment
Open

Feature request: i18n translation of error messages #9

zyllorion opened this issue Feb 20, 2015 · 1 comment

Comments

@zyllorion
Copy link

Hi,

Please could you consider adding client side translation of field level error messages from a 422 response from the server.

{{t errors.message}} should work but not if multiple errors without loops etc, so it would ideally be done within the template of ember-form-master-2000, possibly an overridable function that can define any translation mechanism.

I'll admit I could probably just write a custom template to override this, but then that's a maintenance annoyance!

Thanks

@Emerson
Copy link
Owner

Emerson commented Mar 24, 2015

Not closing this yet, but the easy workaround would be to just override the template in your own app at:

/your-app/templates/components/ember-form-master-2000/fm-errortext.hbs

I'd like to make internationalization easy, but I'm not sure what the best path for this is at the moment. Most people using this library won't have Ember.i18n installed, which means we'd need to add some kind of detection to ensure the t helper is available.

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