FIX: You can't cache the files here, plugin translations won't work

This commit is contained in:
Robin Ward 2017-08-09 17:28:11 -04:00
parent c3051b89c0
commit dc15e48334
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module JsLocaleHelper module JsLocaleHelper
def self.plugin_client_files(locale_str) 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 end
def self.reloadable_plugins(locale, ctx) def self.reloadable_plugins(locale, ctx)