Sha256: ac57c4349d40d54a7d1f683c27d0db165f2c37b22789bac3fe4bb5a17ff8fe9f
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 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.version hash = YAML.load_file File.join(File.dirname(__FILE__), '../version.yml') [hash[:major], hash[:minor], hash[:patch]].join('.') end 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 do |file| response_code = file.fetch(locale) puts "Done. Response code: #{response_code}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
web_translate_it-1.4.0 | lib/web_translate_it.rb |