mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 02:09:30 +00:00
Disable in development (server)
This commit is contained in:
parent
ecfa17b5a7
commit
650eb86a74
@ -21,4 +21,15 @@ class FallbackLocaleList < Hash
|
||||
self[I18n.locale].each { |l| I18n.ensure_loaded! l }
|
||||
end
|
||||
end
|
||||
I18n.fallbacks = FallbackLocaleList.new
|
||||
|
||||
class NoFallbackLocaleList < FallbackLocaleList
|
||||
def [](locale)
|
||||
[locale]
|
||||
end
|
||||
end
|
||||
|
||||
if Rails.env.production?
|
||||
I18n.fallbacks = FallbackLocaleList.new
|
||||
else
|
||||
I18n.fallbacks = NoFallbackLocaleList.new
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user