Sha256: bfde96a524ff5679a78a7bc7caaf5cb6495923468f4644918d765b3d5ca45a6e
Contents?: true
Size: 892 Bytes
Versions: 6
Compression:
Stored size: 892 Bytes
Contents
require File.join(File.dirname(__FILE__), 'web_translate_it', 'util') require File.join(File.dirname(__FILE__), 'web_translate_it', 'configuration') require File.join(File.dirname(__FILE__), 'web_translate_it', 'translation_file') require File.join(File.dirname(__FILE__), 'web_translate_it', 'auto_fetch') require File.join(File.dirname(__FILE__), 'web_translate_it', 'command_line') require File.join(File.dirname(__FILE__), 'web_translate_it', 'project') module WebTranslateIt def self.fetch_translations config = Configuration.new locale = I18n.locale.to_s return if config.ignore_locales.include?(locale) config.logger.debug { "Fetching #{locale} translations to Web Translate It" } if config.logger config.files.each do |file| response = file.fetch(locale) config.logger { "Web Translate It response: #{response}" } if config.logger end end end
Version data entries
6 entries across 6 versions & 2 rubygems