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.0.0.rc10 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.0.0.rc9 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.0.0.rc8 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.0.0.rc7 lib/rails/generators/i18n/js/config/config_generator.rb
i18n-js-3.0.0.rc6 lib/rails/generators/i18n/js/config/config_generator.rb