Merge pull request #3753 from riking/patch-6
FIX: Fallbacks for missing interpolation arguments
This commit is contained in:
commit
c1d09be3cf
|
@ -28,8 +28,10 @@ class NoFallbackLocaleList < FallbackLocaleList
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if Rails.env.production?
|
|
||||||
I18n.fallbacks = FallbackLocaleList.new
|
if Rails.env.development?
|
||||||
else
|
|
||||||
I18n.fallbacks = NoFallbackLocaleList.new
|
I18n.fallbacks = NoFallbackLocaleList.new
|
||||||
|
else
|
||||||
|
I18n.fallbacks = FallbackLocaleList.new
|
||||||
|
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue