Class: I18n::Tasks::Translators::YoudaoTranslator

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

Instance Method Summary collapse

Methods inherited from BaseTranslator

#translate_forest

Constructor Details

#initializeYoudaoTranslator

Returns a new instance of YoudaoTranslator.



7
8
9
10
11
12
13
14
# File 'lib/i18n/tasks/translators/youdao_translator.rb', line 7

def initialize(*)
  begin
    require 'easy_translate'
  rescue LoadError
    raise ::I18n::Tasks::CommandError, "Add gem 'easy_translate' to your Gemfile to use this command"
  end
  super
end