public class EmptyTranslator extends java.lang.Object implements Translator
Constructor and Description |
---|
EmptyTranslator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable() |
java.lang.String |
translate(java.lang.String text,
java.lang.String targetLanguage)
Translate text to the given language
This method attempts to auto-detect the source language of the text.
|
java.lang.String |
translate(java.lang.String text,
java.lang.String sourceLanguage,
java.lang.String targetLanguage)
Translate text between given languages.
|
public java.lang.String translate(java.lang.String text, java.lang.String sourceLanguage, java.lang.String targetLanguage)
Translator
translate
in interface Translator
text
- The text to translate.sourceLanguage
- The input text language (for example, "en").targetLanguage
- The desired language to translate to (for example, "fr").public java.lang.String translate(java.lang.String text, java.lang.String targetLanguage)
Translator
translate
in interface Translator
text
- The text to translate.targetLanguage
- The desired language to translate to (for example, "hi").public boolean isAvailable()
isAvailable
in interface Translator
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"