2015-07-15 12:04:45 -04:00
|
|
|
# order: after 02-freedom_patches.rb
|
|
|
|
|
2015-11-13 15:42:01 -05:00
|
|
|
require 'i18n/backend/discourse_i18n'
|
|
|
|
I18n.backend = I18n::Backend::DiscourseI18n.new
|
2015-09-02 15:28:50 -04:00
|
|
|
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
|
2015-11-23 16:45:05 -05:00
|
|
|
I18n.init_accelerator!
|
2015-11-17 16:14:42 -05:00
|
|
|
|
2015-11-23 16:45:05 -05:00
|
|
|
unless Rails.env.test?
|
|
|
|
MessageBus.subscribe("/i18n-flush") { I18n.reload! }
|
|
|
|
end
|