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

Formatting of error's "detail" attribute #97

Open
kamk opened this issue Mar 13, 2019 · 0 comments
Open

Formatting of error's "detail" attribute #97

kamk opened this issue Mar 13, 2019 · 0 comments

Comments

@kamk
Copy link

kamk commented Mar 13, 2019

If rails-i18n gem is used, the formatting of detail member of error object

[translation_for(resource_key), message].join(' ')

should reflect locale's configuration:

I18n.t('errors.format', attribute: translation_for(resource_key), message: message)
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

1 participant