ref: master
app/helpers/translations_helper.rb
1 2 3 4 5 6 7 8 9 10 11
module TranslationsHelper def js_translations_include options={} if plugin = options[:plugin] javascript_include_tag "i18n/#{plugin}/#{I18n.locale}" else javascript_include_tag "i18n/#{I18n.locale}" end end end