Class: I18n::Tasks::Translators::GoogleTranslator

Inherits:
BaseTranslator show all
Defined in:
lib/i18n/tasks/translators/google_translator.rb

Defined Under Namespace

Classes: Error, QuotaExceededError, RateLimitError

Constant Summary collapse

API_ENDPOINT =
"https://translation.googleapis.com/language/translate/v2"
MAX_TEXTS_PER_REQUEST =
128
MAX_CHARS_PER_REQUEST =
30_000

Constants included from Logging

Logging::MUTEX, Logging::PROGRAM_NAME

Instance Method Summary collapse

Methods inherited from BaseTranslator

#translate_forest

Methods included from Logging

log_error, log_stderr, log_verbose, log_warn, program_name, warn_deprecated

Constructor Details

#initializeGoogleTranslator

Returns a new instance of GoogleTranslator.



23
24
25
# File 'lib/i18n/tasks/translators/google_translator.rb', line 23

def initialize(*)
  super
end