mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
FIX: You can't cache the files here, plugin translations won't work
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
module JsLocaleHelper
|
||||
|
||||
def self.plugin_client_files(locale_str)
|
||||
@plugin_client_fileds ||= Dir["#{Rails.root}/plugins/*/config/locales/client.#{locale_str}.yml"]
|
||||
Dir["#{Rails.root}/plugins/*/config/locales/client.#{locale_str}.yml"]
|
||||
end
|
||||
|
||||
def self.reloadable_plugins(locale, ctx)
|
||||
|
Reference in New Issue
Block a user