mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Load translation overrides without JS eval
This commit is contained in:
@@ -39,6 +39,7 @@ class TranslationOverride < ActiveRecord::Base
|
||||
|
||||
def self.i18n_changed(keys)
|
||||
I18n.reload!
|
||||
ExtraLocalesController.clear_cache!
|
||||
MessageBus.publish('/i18n-flush', refresh: true)
|
||||
|
||||
keys.flatten.each do |key|
|
||||
|
||||
Reference in New Issue
Block a user