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

「2. Rails の i18n を理解する」の差分 / 「3. kaminari を使ってページング処理を実装する」スタート地点 #1

Open
wants to merge 11 commits into
base: 02-i18n
Choose a base branch
from

Conversation

JunichiIto
Copy link
Collaborator

No description provided.

@@ -0,0 +1,2 @@
I18n.available_locales = [:en, :ja]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

MEMO

  • config/application.rbconfig.i18n.default_locale = :jaを書いたときはavailable_localesの設定が不要
  • config.i18n.default_locale = :jaで書いたときはafter_initializeフックで実行され、その場合はenforce_available_localesのフラグがfalseになるため

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

Successfully merging this pull request may close these issues.

1 participant