Sha256: c7617167832898d74b73b02ed26f39926753aadbc7dcafea6f97f57e4308000a

Contents?: true

Size: 819 Bytes

Versions: 2

Compression:

Stored size: 819 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')

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

2 entries across 2 versions & 1 rubygems

Version Path
web_translate_it-1.4.6 lib/web_translate_it.rb
web_translate_it-1.4.5 lib/web_translate_it.rb