Sha256: 395733a73d2c1d338fec0c1e68b273848dcd740010241c5c3dd5a3054bb0ae2f

Contents?: true

Size: 495 Bytes

Versions: 40

Compression:

Stored size: 495 Bytes

Contents

require 'rails/generators/migration'
 
module TkhAuthentication
  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_authentication.#{l.to_s}.yml"
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
tkh_authentication-0.9.17.2 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.17.1 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.17 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.16 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.15 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.14 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.13 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.12 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.11 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.10 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.9 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.8 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.7 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.6 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.5 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.4 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.3 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.11 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.10 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.9 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb