Sha256: 7a97e7299ea1d14f1248ab442f8d1462d7b972d6d0b54d07c73a23d32d874604

Contents?: true

Size: 741 Bytes

Versions: 2

Compression:

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

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.4 lib/web_translate_it.rb
web_translate_it-1.4.3 lib/web_translate_it.rb