Class: LocaleKit::Generators::MailerGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/locale_kit/mailer/mailer_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_example_locale_fileObject



8
9
10
11
12
13
# File 'lib/generators/locale_kit/mailer/mailer_generator.rb', line 8

def copy_example_locale_file
  I18n.available_locales.each do |locale|
    self.current_locale = locale
    template('locale.yml', locale_dir.join('mailers', *class_path, file_name, "#{locale}.yml"))
  end
end