Skip to content
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