Sha256: cc7021dcdd237449a56c16bbe349e9bf8b531fe8424ded75d129cf35b2348c88

Contents?: true

Size: 490 Bytes

Versions: 22

Compression:

Stored size: 490 Bytes

Contents

require 'rails/generators/migration'

module TkhMailingList
  module Generators
    class CreateOrUpdateLocalesGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc "copying latest version of locale files"
      def copy_locales
        puts 'creating locale files'
        I18n.available_locales.each do |l|
          copy_file "#{l.to_s}.yml", "config/locales/tkh_mailing_list.#{l.to_s}.yml"
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tkh_mailing_list-0.12 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.11.3 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.11.2 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.11.1.1 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.11.1 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.11 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.10 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.9.1 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.9 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.8 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.7 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.6 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.5 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.4 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.3 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.2 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10.1 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.10 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.9.2 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb
tkh_mailing_list-0.9.1 lib/generators/tkh_mailing_list/create_or_update_locales/create_or_update_locales_generator.rb