Sha256: 34c0f0f286d8fd4f385435111d4572ea5a6b77c913ed41b01254a9b4c7303d6d
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
require "i18n/js" module I18n module JS class Engine < ::Rails::Engine initializer "i18n-js.register_preprocessor", :after => "sprockets.environment" do next unless JS::Dependencies.using_asset_pipeline? next unless JS::Dependencies.sprockets_supports_register_preprocessor? Rails.application.assets.register_preprocessor "application/javascript", :"i18n-js_dependencies" do |context, source| if context.logical_path == "i18n/filtered" ::I18n.load_path.each {|path| context.depend_on(File.expand_path(path))} end source end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
i18n-js-3.0.0.rc11 | lib/i18n/js/engine.rb |
i18n-js-3.0.0.rc10 | lib/i18n/js/engine.rb |
i18n-js-3.0.0.rc9 | lib/i18n/js/engine.rb |
i18n-js-3.0.0.rc8 | lib/i18n/js/engine.rb |