Sha256: 2e9ab1e16518a5416d4af1a9a41500d22b106647c265ac445de2c72e9706027e
Contents?: true
Size: 785 Bytes
Versions: 8
Compression:
Stored size: 785 Bytes
Contents
# encoding: utf-8 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
8 entries across 8 versions & 1 rubygems