Sha256: e000256795e2e001e7e8c56e160b0e14d128462fd378e0dfdab8f9a19668edf7

Contents?: true

Size: 803 Bytes

Versions: 2

Compression:

Stored size: 803 Bytes

Contents

# encoding: utf-8
require 'rubygems'
require 'web_translate_it/util'
require 'web_translate_it/configuration'
require 'web_translate_it/translation_file'
require 'web_translate_it/auto_fetch'
require 'web_translate_it/command_line'
require 'web_translate_it/project'
require 'web_translate_it/server'

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.upcase} language file(s) from Web Translate It…" } if config.logger
    config.files.find_all{ |file| file.locale == locale }.each do |file|
      response = file.fetch
      config.logger.debug { "➔  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.8.0.1 lib/web_translate_it.rb
web_translate_it-1.8.0.0 lib/web_translate_it.rb