Sha256: 466b7f0a6e67edfa5b8f6b58b9bf3d549fb236115ef3295337baa7291e8094c0

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

module Ecm
  module Lightbox
    module Generators
      class LocalesGenerator < Rails::Generators::Base
        desc "Copies the locale files to your application"

        source_root File.expand_path('../../../../../../config/locales', __FILE__)

        def generate_locales
          copy_file "en.yml", "config/locales/ecm.lightbox.en.yml"
          copy_file "de.yml", "config/locales/ecm.lightbox.de.yml"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ecm_lightbox2-1.1.2 lib/generators/ecm/lightbox/locales/locales_generator.rb
ecm_lightbox2-1.1.1 lib/generators/ecm/lightbox/locales/locales_generator.rb
ecm_lightbox2-1.1.0 lib/generators/ecm/lightbox/locales/locales_generator.rb
ecm_lightbox2-1.0.0 lib/generators/ecm/lightbox/locales/locales_generator.rb
ecm_lightbox-0.0.2.pre lib/generators/ecm/lightbox/locales/locales_generator.rb
ecm_lightbox-0.0.1.pre lib/generators/ecm/lightbox/locales/locales_generator.rb