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

Enable the i18n module's enforce_available_locales option. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions config/initializers/locale.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# i18n's old behavior was to not validate locales when
# certain things were done with it. This behavior is now
# deprecated, but is still the default. When i18n defaults
# to the deprecated behavior, it prints a warning message.
# Our options are to either explicitly choose the deprecated
# behavior or switch to the new behavior, both of which
# suppress the warning message. There doesn't seem to be any
# reason not to switch to the new behavior, so we do that here.
I18n.config.enforce_available_locales = true