Skip to content

Commit

Permalink
feat(ja.yml): Translate the unlocks, confirmations message into Japan…
Browse files Browse the repository at this point in the history
…ese (#1544)
  • Loading branch information
hatsu38 authored Aug 2, 2022
1 parent 8f44a8c commit 1a0483f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ ja:
missing_redirect_url: "リダイレクト URL が与えられていません。"
not_allowed_redirect_url: "'%{redirect_url}' へのリダイレクトは許可されていません。"
sended: "'%{email}' にパスワードリセットの案内が送信されました。"
sended_paranoid: ""すでにメールアドレスがデータベースに登録されている場合、 数分後にパスワード再発行用のリンクを記載したメールをお送りします。"
user_not_found: "メールアドレス '%{email}' のユーザーが見つかりません。"
password_not_required: "このアカウントはパスワードを要求していません。'%{provider}' を利用してログインしてください。"
missing_passwords: "'Password', 'Password confirmation' パラメータが与えられていません。"
successfully_updated: "パスワードの更新に成功しました。"
unlocks:
missing_email: "メールアドレスが与えられていません。"
sended: "%{email}' にアカウントのロックを解除する方法を記載したメールが送信されました。"
sended_paranoid: "アカウントが存在する場合、数分後にロックを解除する方法を記載したメールをお送りします。"
user_not_found: "メールアドレス '%{email}' を持つユーザーが見つかりません。"
confirmations:
sended: "'%{email}' にアカウントの確認方法を記載したメールが送信されました。"
sended_paranoid: "すでにメールアドレスがデータベースに登録されている場合、数分後にメールアドレスの確認方法を記載したメールをお送りします。"
user_not_found: "メールアドレス '%{email}' を持つユーザーが見つかりません。"
missing_email: "メールアドレスが与えられていません。"

errors:
messages:
validate_sign_up_params: "リクエストボディに適切なアカウント新規登録データを送信してください。"
Expand Down

2 comments on commit 1a0483f

@GMolini
Copy link

@GMolini GMolini commented on 1a0483f Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. This commit raises an i18n exception (I18n::InvalidLocaleData). Its weird because it didnt throw it from when I launched the rails console, but sometime after. I think its because the YAML is badly formatted. If you copy and paste its contents to http://www.yamllint.com/ it gives the following error (<unknown>): did not find expected key while parsing a block mapping at line 20 column 7

@mgmodell
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra double quote (") on ln 24, col 25. Removing it fixes things.
My own fork has multi_email code on the master branch and is out of sync with this branch, so I'm not sure how I can submit a PR without access rights to this repo (not that I need them). The fix above is quick and easy enough to make.

Please sign in to comment.