Module: Cybele::Helpers::LocaleLanguage

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/locale_language.rb

Instance Method Summary collapse

Instance Method Details

#configure_locale_languageObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/cybele/helpers/locale_language.rb', line 6

def configure_locale_language
  copy_files(
    'config/locales/tr.yml' => 'config/locales/tr.yml',
    'config/locales/en.yml' => 'config/locales/en.yml',
    'config/locales/mailer.tr.yml' => 'config/locales/mailer.tr.yml',
    'config/locales/models.tr.yml' => 'config/locales/models.tr.yml',
    'config/locales/view.tr.yml' => 'config/locales/view.tr.yml',
    'config/locales/mailer.en.yml' => 'config/locales/mailer.en.yml',
    'config/locales/models.en.yml' => 'config/locales/models.en.yml',
    'config/locales/view.en.yml' => 'config/locales/view.en.yml'
  )
  inject_into_file 'config/application.rb',
                   template_content('config/config_application.rb.erb'),
                   after: 'class Application < Rails::Application'
end