mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:52:45 +08:00
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
|
||||
|
||||
if Rails.env.production?
|
||||
I18n.fallbacks = FallbackLocaleList.new
|
||||
else
|
||||
|
||||
if Rails.env.development?
|
||||
I18n.fallbacks = NoFallbackLocaleList.new
|
||||
else
|
||||
I18n.fallbacks = FallbackLocaleList.new
|
||||
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user