Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ログイン失敗時のパスワード入力のlabelが英語なので日本語にしてほしい #5380

Closed
machida opened this issue Aug 17, 2022 · 2 comments
Assignees

Comments

@machida
Copy link
Member

machida commented Aug 17, 2022

ログイン失敗したとき(URL: /user_sessions)

貼り付けた画像_2022_08_17_11_14

@shirotamaki
Copy link
Contributor

shirotamaki commented Aug 27, 2022

@komagata @machida
お疲れさまです!
Issue内容を確認しました。ログイン失敗時のパスワード入力のlabelですが日本語に直っていました。
コード内容も確認したところ問題は見受けられませんでした。
このような場合はどうしたらよいでしょうか?

image

/app/views/user_sessions/_form.html.slim

 = form_with model: user, local: true, url: user_sessions_path, html: { id: 'sign-in-form', class: 'form', name: 'user_session' } do |f|
   .form__items
     .form-item
       = label_tag 'user_login', 'ユーザー名 or メールアドレス', class: 'a-form-label'
       = text_field_tag 'user[login]', '', class: 'a-text-input', id: 'user_login'
     .form-item
       = f.label :password, class: 'a-form-label'
       = f.password_field :password, class: 'a-text-input'
 
 //////////////省略    

config/locales/ja.yml

attributes:
      user:
        login_name: アカウント
        name: 名前(ニックネームも可)
        name_kana: 名前(カナ)
        course_id: コース
        description: 自己紹介
        email: Email
        twitter_account: Twitterアカウント
        facebook_url: Facebook URL
        blog_url: ブログURL
        github_account: GitHubアカウント
        discord_account: Discordアカウント
        times_url: 分報URL
        password: パスワード
 //////////////省略    

@machida
Copy link
Member Author

machida commented Aug 27, 2022

@shirotamaki 確認しました!調査ありがとうございます。こちらはクローズでお願いします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants