27
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Deviseの設定手順をまとめてみた。 その3 Deviseの日本語化編

Last updated at Posted at 2015-04-26

--- 全体の流れ ---
その1 導入編
その2 ViewとControllerのカスタマイズ編
その3 Deviseの日本語化編 ←今ココ
その4 ユーザーIDで、ログイン認証編

ところで、Deviseのログイン画面やサインイン画面、そして各種メッセージは、デフォルトは英語。
なので、運用を考えたら、やっぱり日本語化しないとね。

1. Gemfileに以下を追加

gem 'devise-i18n'
gem 'devise-i18n-views'

2. インストール

$ bundle install
  • config/application.rbja に設定
config.i18n.default_locale = :ja

以上です。

27
33
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?