Sha256: 6678cdadb8df17217c19715a23af867af66f5701438009928cb58b8c52335bb9

Contents?: true

Size: 531 Bytes

Versions: 45

Compression:

Stored size: 531 Bytes

Contents

module I18n
  module Js
    class ConfigGenerator < Rails::Generators::Base
      # Copied files come from templates folder
      source_root File.expand_path('../templates', __FILE__)

      # Generator desc
      desc <<-DESC
        Creates a default i18n-js.yml configuration file in your app's config
        folder. This file allows you to customize i18n:js:export rake task
        outputted files.
      DESC

      def copy_initializer_file
        copy_file "i18n-js.yml", "config/i18n-js.yml"
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
i18n-js-3.9.2 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.9.1 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.9.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.8.4 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.8.3 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.8.2 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.8.1 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.8.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.7.1 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.7.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.6.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.5.1 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.5.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.4.2 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.4.1 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.4.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.3.0 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.2.3 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.2.2 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.2.1 lib/rails/generators/i18n/js/config/config_generator.rb