tiagopog/jsonapi-utils

Formatting of error's "detail" attribute

kamk opened this issue · 0 comments

kamk commented

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)