public final class Translate extends YandexTranslatorAPI
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
execute(java.lang.String text,
Language from,
Language to)
Translates text from a given Language to another given Language using Yandex.
|
retrievePropString, setKey, setReferrer
public static java.lang.String execute(java.lang.String text, Language from, Language to) throws java.lang.Exception
text
- The String to translate.from
- The language code to translate from.to
- The language code to translate to.java.lang.Exception
- on error.