TranslateLanguage

public class TranslateLanguage extends Object

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").

Constant Value: "af"

public static final String ALBANIAN

Albanian ("sq").

Constant Value: "sq"

public static final String ARABIC

Arabic ("ar").

Constant Value: "ar"

public static final String BELARUSIAN

Belarusian ("be").

Constant Value: "be"

public static final String BENGALI

Bengali ("bn"). Also known as Bangla.

Constant Value: "bn"

public static final String BULGARIAN

Bulgarian ("bg").

Constant Value: "bg"

public static final String CATALAN

Catalan ("ca").

Constant Value: "ca"

public static final String CHINESE

Chinese ("zh").

Constant Value: "zh"

public static final String CROATIAN

Croatian ("hr").

Constant Value: "hr"

public static final String CZECH

Czech ("cs").

Constant Value: "cs"

public static final String DANISH

Danish ("da").

Constant Value: "da"

public static final String DUTCH

Dutch ("nl").

Constant Value: "nl"

public static final String ENGLISH

English ("en").

Constant Value: "en"

public static final String ESPERANTO

Esperanto ("eo").

Constant Value: "eo"

public static final String ESTONIAN

Estonian ("et").

Constant Value: "et"

public static final String FINNISH

Finnish ("fi").

Constant Value: "fi"

public static final String FRENCH

French ("fr").

Constant Value: "fr"

public static final String GALICIAN

Galician ("gl").

Constant Value: "gl"

public static final String GEORGIAN

Georgian ("ka").

Constant Value: "ka"

public static final String GERMAN

German ("de").

Constant Value: "de"

public static final String GREEK

Greek ("el").

Constant Value: "el"

public static final String GUJARATI

Gujarati ("gu").

Constant Value: "gu"

public static final String HAITIAN_CREOLE

Haitian Creole ("ht").

Constant Value: "ht"

public static final String HEBREW

Hebrew ("he").

Constant Value: "he"

public static final String HINDI

Hindi ("hi").

Constant Value: "hi"

public static final String HUNGARIAN

Hungarian ("hu").

Constant Value: "hu"

public static final String ICELANDIC

Icelandic ("is").

Constant Value: "is"

public static final String INDONESIAN

Indonesian ("id").

Constant Value: "id"

public static final String IRISH

Irish ("ga").

Constant Value: "ga"

public static final String ITALIAN

Italian ("it").

Constant Value: "it"

public static final String JAPANESE

Japanese ("ja").

Constant Value: "ja"

public static final String KANNADA

Kannada ("kn").

Constant Value: "kn"

public static final String KOREAN

Korean ("ko").

Constant Value: "ko"

public static final String LATVIAN

Latvian ("lv").

Constant Value: "lv"

public static final String LITHUANIAN

Lithuanian ("lt").

Constant Value: "lt"

public static final String MACEDONIAN

Macedonian ("mk").

Constant Value: "mk"

public static final String MALAY

Malay ("ms").

Constant Value: "ms"

public static final String MALTESE

Maltese ("mt").

Constant Value: "mt"

public static final String MARATHI

Marathi ("mr").

Constant Value: "mr"

public static final String NORWEGIAN

Norwegian ("no").

Constant Value: "no"

public static final String PERSIAN

Persian ("fa"). Also known as Farsi.

Constant Value: "fa"

public static final String POLISH

Polish ("pl").

Constant Value: "pl"

public static final String PORTUGUESE

Portuguese ("pt").

Constant Value: "pt"

public static final String ROMANIAN

Romanian ("ro").

Constant Value: "ro"

public static final String RUSSIAN

Russian ("ru").

Constant Value: "ru"

public static final String SLOVAK

Slovak ("sk").

Constant Value: "sk"

public static final String SLOVENIAN

Slovenian ("sl").

Constant Value: "sl"

public static final String SPANISH

Spanish ("es").

Constant Value: "es"

public static final String SWAHILI

Swahili ("sw").

Constant Value: "sw"

public static final String SWEDISH

Swedish ("sv").

Constant Value: "sv"

public static final String TAGALOG

Tagalog ("tl").

Constant Value: "tl"

public static final String TAMIL

Tamil ("ta").

Constant Value: "ta"

public static final String TELUGU

Telugu ("te").

Constant Value: "te"

public static final String THAI

Thai ("th").

Constant Value: "th"

public static final String TURKISH

Turkish ("tr").

Constant Value: "tr"

public static final String UKRAINIAN

Ukrainian ("uk").

Constant Value: "uk"

public static final String URDU

Urdu ("ur").

Constant Value: "ur"

public static final String VIETNAMESE

Vietnamese ("vi").

Constant Value: "vi"

public static final String WELSH

Welsh ("cy").

Constant Value: "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.