class TkhIllustrations::Generators::CreateOrUpdateLocalesGenerator

Public Instance Methods

copy_locales() click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_locales/create_or_update_locales_generator.rb, line 8
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