Title: Fix incorrect translation key for parameter_not_allowed.detail · Issue #1468 · JSONAPI-Resources/jsonapi-resources · GitHub
Open Graph Title: Fix incorrect translation key for parameter_not_allowed.detail · Issue #1468 · JSONAPI-Resources/jsonapi-resources
X Title: Fix incorrect translation key for parameter_not_allowed.detail · Issue #1468 · JSONAPI-Resources/jsonapi-resources
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, a...
Open Graph 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 m...
X 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 m...
Opengraph URL: https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1468
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix incorrect translation key for parameter_not_allowed.detail","articleBody":"### Problem\nThe 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.\n\n### Code with the Issue\nHere’s the problematic code:\n\n```ruby\ntitle: I18n.translate('jsonapi-resources.exceptions.parameters_not_allowed.detail',\n default: \"#{param} is not allowed.\", param: param)\n```\n\n### Expected Behavior\nThe 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:\n\n```ruby\ntitle: I18n.translate('jsonapi-resources.exceptions.parameter_not_allowed.detail',\n default: \"#{param} is not allowed.\", param: param)\n```\n\n### Solution\nUpdate the code to use the correct translation key: `parameter_not_allowed.detail` (singular), ensuring it matches the key defined in the translation files.\n","author":{"url":"https://github.com/pozzer","@type":"Person","name":"pozzer"},"datePublished":"2025-02-28T00:17:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1468/jsonapi-resources/issues/1468"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:522708ce-e2c7-9ca8-11ef-be7a355d5ec3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A4E:B5AA6:185C834:211879B:6A4F0E19 |
| html-safe-nonce | a7e2a47e6a32b48a94a750baab2690960600d413c3bb005a9687de9eb3b2d44e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTRFOkI1QUE2OjE4NUM4MzQ6MjExODc5Qjo2QTRGMEUxOSIsInZpc2l0b3JfaWQiOiIzOTA4MTY3NjI0MDUyMTE3MDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e15a9d1f207a29dfa3872cb57b39485bd55a3882c5e0b1b7b924048b268f08f4 |
| hovercard-subject-tag | issue:2885875190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSONAPI-Resources/jsonapi-resources/1468/issue_layout |
| twitter:image | https://opengraph.githubassets.com/085d304d730be977af78909f597b7ffeebf0639d9957b5afb09289fbc84ce6e8/JSONAPI-Resources/jsonapi-resources/issues/1468 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/085d304d730be977af78909f597b7ffeebf0639d9957b5afb09289fbc84ce6e8/JSONAPI-Resources/jsonapi-resources/issues/1468 |
| og:image:alt | 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 m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pozzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSONAPI-Resources/jsonapi-resources git https://github.com/JSONAPI-Resources/jsonapi-resources.git |
| octolytics-dimension-user_id | 262422067 |
| octolytics-dimension-user_login | JSONAPI-Resources |
| octolytics-dimension-repository_id | 18248068 |
| octolytics-dimension-repository_nwo | JSONAPI-Resources/jsonapi-resources |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18248068 |
| octolytics-dimension-repository_network_root_nwo | JSONAPI-Resources/jsonapi-resources |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width