Skip to content

Commit

Permalink
fix: reinstate i18n fallbacks
Browse files Browse the repository at this point in the history
Before i18n v1.1.0, i18n.fallbacks would eventually hit your
default_locale. That was changed without warning and broke
everything ruby-i18n/i18n#415. This restores the
previous behavior by explicity falling back to English.
  • Loading branch information
cbothner committed Dec 12, 2018
1 parent 03caa33 commit fa99e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
.map { |fname| File.basename fname, '.yml' }
.map(&:to_sym)
config.i18n.available_locales = ([:en] + available_locales).uniq

config.i18n.fallbacks = %i[en]
end

module Translation
Expand Down

0 comments on commit fa99e0e

Please sign in to comment.