Sha256: 78a59565444a3e8e364aece5c0433a5e2c6d3cfa2606979c70e9105d0bf05244

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

require 'generators/i18n_translation/i18n_translation_generator'
require 'generators/i18n_locale/i18n_locale_generator'

class I18nGenerator < Rails::Generators::NamedBase
  def initialize(args, *options)
    super
    @_args, @_options = args, options
  end

  def main
    locale_gen = I18nLocaleGenerator.new(@_args, @_options)
    locale_gen.main

    translation_gen = I18nTranslationGenerator.new(@_args, @_options)
    translation_gen.main
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
i18n_generators-2.2.2 lib/generators/i18n/i18n_generator.rb
i18n_generators-2.2.1 lib/generators/i18n/i18n_generator.rb
i18n_generators-2.2.0 lib/generators/i18n/i18n_generator.rb
i18n_generators-2.1.1 lib/generators/i18n/i18n_generator.rb
i18n_generators-2.1.0 lib/generators/i18n/i18n_generator.rb
i18n_generators-2.0.0 lib/generators/i18n/i18n_generator.rb
i18n_generators-1.2.1 lib/generators/i18n/i18n_generator.rb
i18n_generators-1.2.0 lib/generators/i18n/i18n_generator.rb