mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #3724 from gschlager/i18n
Always use locale fallback on server
This commit is contained in:
commit
d4f5f0170c
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user