Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Fix incorrect translation key for parameter_not_allowed.detail

オープン 初心者向け
#1,468 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
ruby
領域
api

調査の方向性

Issue に示されている I18n.translate の呼び出しから始め、その検索キーを翻訳ファイル内の単数形のキーと比較します。完了の条件は、Exception がデフォルトの英語メッセージにフォールバックせず、定義されている parameter_not_allowed.detail の翻訳を解決することです。特定のファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Ruby
スター
2.3k
フォーク
546
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

JSONAPI-Resources/jsonapi-resources のほかの issue

JSONAPI-Resources/jsonapi-resources の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。