ja.yml日本語化での悪夢

 

```

ja:
  views:
    pagination:
      first: <i class="fas fa-angle-double-left"></i>
      last: <i class="fas fa-angle-double-right"></i>
      previous: <i class="fas fa-angle-left"></i>
      next:  <i class="fas fa-angle-right"></i>
      truncate: "..."
  enums:
    item:
      status:
        close: "非公開"
        release: "公開"
        only_clerk: "店舗スタッフのみ公開"
  activerecord:
    errors:
      models:
        item:
          attributes:
            brand:
              required: "を選択してください"
    models:
      user: "ユーザー"
    attributes:
      user:
        email: "メールアドレス"
        name: "お名前"
        name_kana: "フリガナ"
        nick_name: "ニックネーム(表示用)"
        password: "パスワード"
        password_confirmation: "確認用パスワード"
        brand_id: "所属ブランド"
        brand_name: "ブランド名"
        store_id: "所属店舗"
        store_name: "店舗名"
    models:
      item: "投稿"
    attributes:
      item:
        item_image: "投稿画像"
        brand: "ブランド"
        status: "公開ステータス"
        text: "説明文"
  errors:
    format: "%{attribute}%{message}"
    messages:
      blank: を入力してください
      empty: を入力してください

```

 

 

name: "お名前"この辺が日本語化されなくてなぜ・・と悩んだ数時間後

 

 

```

 models:
      user: "ユーザー"
      item: "投稿"
    attributes:
      user:
        email: "メールアドレス"
        name: "お名前"
        name_kana: "フリガナ"
        nick_name: "ニックネーム(表示用)"
        password: "パスワード"
        password_confirmation: "確認用パスワード"
        brand_id: "所属ブランド"
        brand_name: "ブランド名"
        store_id: "所属店舗"
        store_name: "店舗名"
      item:
        item_image: "投稿画像"
        brand: "ブランド"
        status: "公開ステータス"
        text: "説明文"

```

 

まとめたら解消しました・・

よかったけど時を戻したい。