Always use locale fallback on server

This commit is contained in:
Gerhard Schlager 2015-09-02 21:28:50 +02:00
parent 9ba22b5155
commit 233bf9bc24
1 changed files with 2 additions and 13 deletions

View File

@ -22,16 +22,5 @@ class FallbackLocaleList < Hash
end
end
class NoFallbackLocaleList < FallbackLocaleList
def [](locale)
[locale]
end
end
if Rails.env.development?
I18n.fallbacks = NoFallbackLocaleList.new
else
I18n.fallbacks = FallbackLocaleList.new
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
end
I18n.fallbacks = FallbackLocaleList.new
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }