mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 06:22:31 -05:00
65edbb609c
This reverts commit 47e718f5b2
.
10 lines
310 B
Ruby
10 lines
310 B
Ruby
# order: after 02-freedom_patches.rb
|
|
|
|
require 'i18n/backend/discourse_i18n'
|
|
I18n.backend = I18n::Backend::DiscourseI18n.new
|
|
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
|
|
I18n.init_accelerator!
|
|
|
|
unless Rails.env.test?
|
|
MessageBus.subscribe("/i18n-flush") { I18n.reload! }
|
|
end
|