Sha256: 909469b0809dfcdeed116d84c18370529badd5643f836196c710f1d772440169

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 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)
    puts "Looking for #{locale} translations…"
    config.files.each {|file| puts "Done. Response: #{file.fetch(locale)}" }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
web_translate_it-1.4.2 lib/web_translate_it.rb
web_translate_it-1.4.1 lib/web_translate_it.rb