class TkhMailingList::Generators::CreateOrUpdateLocalesGenerator
Public Instance Methods
copy_locales()
click to toggle source
# File lib/generators/tkh_mailing_list/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_mailing_list.#{l.to_s}.yml" end end