mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Refresh I18n customizations on change
This commit is contained in:
@@ -3,3 +3,5 @@
|
||||
require 'i18n/backend/discourse_i18n'
|
||||
I18n.backend = I18n::Backend::DiscourseI18n.new
|
||||
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
|
||||
|
||||
MessageBus.subscribe("/i18n-flush") { I18n.reload! }
|
||||
|
||||
Reference in New Issue
Block a user