Method: TranslationEngine::Downloader#store
- Defined in:
- app/models/translation_engine/downloader.rb
#store ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'app/models/translation_engine/downloader.rb', line 23 def store if (yml_data = receive_translations) Rails.logger.info { "Storing translations to #{locale_file}" } write(locale_file, yml_data) add_translation_file_to_i18n I18n.backend.reload! end end |