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.1.8 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.2 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9.1 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.9 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.7 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.6 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.5 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.3 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.2 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1.1 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.1 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.12 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.11 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.10 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.9 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.8 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.7 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.6 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.5 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb
tkh_authentication-0.0.4 lib/generators/tkh_authentication/create_or_update_locales/create_or_update_locales_generator.rb