Sha256: e10c59e58d2ed8755c4a08a60e12ea17a162a2c34e4a056aa5b2cfe8d7888a6a

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

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

        source_root File.expand_path('../templates', __FILE__)

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_staff-0.0.2.pre lib/generators/ecm/staff/locales/locales_generator.rb
ecm_staff-0.0.1.pre lib/generators/ecm/staff/locales/locales_generator.rb