Open
Description
Problem
The gem is looking for the translation key parameters_not_allowed.detail
(plural), but the key is correctly defined as parameter_not_allowed.detail
(singular) in the code. Because of this mismatch, the translation is not found, and the default English message is shown.
Code with the Issue
Here’s the problematic code:
title: I18n.translate('jsonapi-resources.exceptions.parameters_not_allowed.detail',
default: "#{param} is not allowed.", param: param)
Expected Behavior
The code should look for the translation key parameter_not_allowed.detail (singular), as this is the correct key defined in the translation files. For example:
title: I18n.translate('jsonapi-resources.exceptions.parameter_not_allowed.detail',
default: "#{param} is not allowed.", param: param)
Solution
Update the code to use the correct translation key: parameter_not_allowed.detail
(singular), ensuring it matches the key defined in the translation files.
Metadata
Metadata
Assignees
Labels
No labels