mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 13:49:54 -04:00
8 lines
271 B
Ruby
8 lines
271 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.reload!
|
|
|
|
MessageBus.subscribe("/i18n-flush") { I18n.reload! }
|