Sha256: 6c0beeb13a2ba3d0b93ede95c6c4e0b6422d19c371761259c69d03e752afa149
Contents?: true
Size: 493 Bytes
Versions: 17
Compression:
Stored size: 493 Bytes
Contents
require 'rails/generators/migration' module TkhIllustrations 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_illustrations.#{l.to_s}.yml" end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems