Class: MachineTranslation::Translator
- Inherits:
-
Object
- Object
- MachineTranslation::Translator
- Defined in:
- lib/machine_translation/translator.rb
Class Method Summary collapse
Class Method Details
.translate(from, to, content) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/machine_translation/translator.rb', line 20 def translate(from, to, content) ## Only support for Google at the moment, but this structure, requesting a translation from a Translator class, ## allows for adding different sources for machine translations in the future within configuration, defaulted ## to Google. Google.translate(from, to, content) end |