Information about the languages that are supported by the Translate API.
Nested Class Summary
@interface | TranslateLanguage.Language | A language supported by the Translate API. |
Constant Summary
String | AFRIKAANS | Afrikaans ("af"). |
String | ALBANIAN | Albanian ("sq"). |
String | ARABIC | Arabic ("ar"). |
String | BELARUSIAN | Belarusian ("be"). |
String | BENGALI | Bengali ("bn"). |
String | BULGARIAN | Bulgarian ("bg"). |
String | CATALAN | Catalan ("ca"). |
String | CHINESE | Chinese ("zh"). |
String | CROATIAN | Croatian ("hr"). |
String | CZECH | Czech ("cs"). |
String | DANISH | Danish ("da"). |
String | DUTCH | Dutch ("nl"). |
String | ENGLISH | English ("en"). |
String | ESPERANTO | Esperanto ("eo"). |
String | ESTONIAN | Estonian ("et"). |
String | FINNISH | Finnish ("fi"). |
String | FRENCH | French ("fr"). |
String | GALICIAN | Galician ("gl"). |
String | GEORGIAN | Georgian ("ka"). |
String | GERMAN | German ("de"). |
String | GREEK | Greek ("el"). |
String | GUJARATI | Gujarati ("gu"). |
String | HAITIAN_CREOLE | Haitian Creole ("ht"). |
String | HEBREW | Hebrew ("he"). |
String | HINDI | Hindi ("hi"). |
String | HUNGARIAN | Hungarian ("hu"). |
String | ICELANDIC | Icelandic ("is"). |
String | INDONESIAN | Indonesian ("id"). |
String | IRISH | Irish ("ga"). |
String | ITALIAN | Italian ("it"). |
String | JAPANESE | Japanese ("ja"). |
String | KANNADA | Kannada ("kn"). |
String | KOREAN | Korean ("ko"). |
String | LATVIAN | Latvian ("lv"). |
String | LITHUANIAN | Lithuanian ("lt"). |
String | MACEDONIAN | Macedonian ("mk"). |
String | MALAY | Malay ("ms"). |
String | MALTESE | Maltese ("mt"). |
String | MARATHI | Marathi ("mr"). |
String | NORWEGIAN | Norwegian ("no"). |
String | PERSIAN | Persian ("fa"). |
String | POLISH | Polish ("pl"). |
String | PORTUGUESE | Portuguese ("pt"). |
String | ROMANIAN | Romanian ("ro"). |
String | RUSSIAN | Russian ("ru"). |
String | SLOVAK | Slovak ("sk"). |
String | SLOVENIAN | Slovenian ("sl"). |
String | SPANISH | Spanish ("es"). |
String | SWAHILI | Swahili ("sw"). |
String | SWEDISH | Swedish ("sv"). |
String | TAGALOG | Tagalog ("tl"). |
String | TAMIL | Tamil ("ta"). |
String | TELUGU | Telugu ("te"). |
String | THAI | Thai ("th"). |
String | TURKISH | Turkish ("tr"). |
String | UKRAINIAN | Ukrainian ("uk"). |
String | URDU | Urdu ("ur"). |
String | VIETNAMESE | Vietnamese ("vi"). |
String | WELSH | Welsh ("cy"). |
Public Method Summary
static String |
fromLanguageTag(String languageTag)
Returns the
TranslateLanguage.Language for a given BCP 47 language tag, or
null if the language tag is invalid or not supported by the
Translate API.
|
static List<String> |
getAllLanguages()
Returns the list of all languages
TranslateLanguage.Language supported by the Translate API, in the
form of BCP 47 tags.
|
Inherited Method Summary
Constants
public static final String AFRIKAANS
Afrikaans ("af").
public static final String ALBANIAN
Albanian ("sq").
public static final String ARABIC
Arabic ("ar").
public static final String BELARUSIAN
Belarusian ("be").
public static final String BENGALI
Bengali ("bn"). Also known as Bangla.
public static final String BULGARIAN
Bulgarian ("bg").
public static final String CATALAN
Catalan ("ca").
public static final String CHINESE
Chinese ("zh").
public static final String CROATIAN
Croatian ("hr").
public static final String CZECH
Czech ("cs").
public static final String DANISH
Danish ("da").
public static final String DUTCH
Dutch ("nl").
public static final String ENGLISH
English ("en").
public static final String ESPERANTO
Esperanto ("eo").
public static final String ESTONIAN
Estonian ("et").
public static final String FINNISH
Finnish ("fi").
public static final String FRENCH
French ("fr").
public static final String GALICIAN
Galician ("gl").
public static final String GEORGIAN
Georgian ("ka").
public static final String GERMAN
German ("de").
public static final String GREEK
Greek ("el").
public static final String GUJARATI
Gujarati ("gu").
public static final String HAITIAN_CREOLE
Haitian Creole ("ht").
public static final String HEBREW
Hebrew ("he").
public static final String HINDI
Hindi ("hi").
public static final String HUNGARIAN
Hungarian ("hu").
public static final String ICELANDIC
Icelandic ("is").
public static final String INDONESIAN
Indonesian ("id").
public static final String IRISH
Irish ("ga").
public static final String ITALIAN
Italian ("it").
public static final String JAPANESE
Japanese ("ja").
public static final String KANNADA
Kannada ("kn").
public static final String KOREAN
Korean ("ko").
public static final String LATVIAN
Latvian ("lv").
public static final String LITHUANIAN
Lithuanian ("lt").
public static final String MACEDONIAN
Macedonian ("mk").
public static final String MALAY
Malay ("ms").
public static final String MALTESE
Maltese ("mt").
public static final String MARATHI
Marathi ("mr").
public static final String NORWEGIAN
Norwegian ("no").
public static final String PERSIAN
Persian ("fa"). Also known as Farsi.
public static final String POLISH
Polish ("pl").
public static final String PORTUGUESE
Portuguese ("pt").
public static final String ROMANIAN
Romanian ("ro").
public static final String RUSSIAN
Russian ("ru").
public static final String SLOVAK
Slovak ("sk").
public static final String SLOVENIAN
Slovenian ("sl").
public static final String SPANISH
Spanish ("es").
public static final String SWAHILI
Swahili ("sw").
public static final String SWEDISH
Swedish ("sv").
public static final String TAGALOG
Tagalog ("tl").
public static final String TAMIL
Tamil ("ta").
public static final String TELUGU
Telugu ("te").
public static final String THAI
Thai ("th").
public static final String TURKISH
Turkish ("tr").
public static final String UKRAINIAN
Ukrainian ("uk").
public static final String URDU
Urdu ("ur").
public static final String VIETNAMESE
Vietnamese ("vi").
public static final String WELSH
Welsh ("cy").
Public Methods
public static String fromLanguageTag (String languageTag)
Returns the TranslateLanguage.Language
for a given BCP 47 language tag, or
null
if the language tag is invalid or not supported by the Translate
API.
public static List<String> getAllLanguages ()
Returns the list of all languages TranslateLanguage.Language
supported by the Translate API, in the form of BCP 47 tags. The returned values will all be in
TranslateLanguage.Language
.