This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.
Information about the languages that are supported by the Translate API.
Nested Class Summary
@interface | FirebaseTranslateLanguage.TranslateLanguage | A language supported by the Translate API. |
Constant Summary
int | AF | Afrikaans. |
int | AR | Arabic. |
int | BE | Belarusian. |
int | BG | Bulgarian. |
int | BN | Bengali. |
int | CA | Catalan. |
int | CS | Czech. |
int | CY | Welsh. |
int | DA | Danish. |
int | DE | German. |
int | EL | Greek. |
int | EN | English. |
int | EO | Esperanto. |
int | ES | Spanish. |
int | ET | Estonian. |
int | FA | Persian. |
int | FI | Finnish. |
int | FR | French. |
int | GA | Irish. |
int | GL | Galician. |
int | GU | Gujarati. |
int | HE | Hebrew. |
int | HI | Hindi. |
int | HR | Croatian. |
int | HT | Haitian. |
int | HU | Hungarian. |
int | ID | Indonesian. |
int | IS | Icelandic. |
int | IT | Italian. |
int | JA | Japanese. |
int | KA | Georgian. |
int | KN | Kannada. |
int | KO | Korean. |
int | LT | Lithuanian. |
int | LV | Latvian. |
int | MK | Macedonian. |
int | MR | Marathi. |
int | MS | Malay. |
int | MT | Maltese. |
int | NL | Dutch. |
int | NO | Norwegian. |
int | PL | Polish. |
int | PT | Portuguese. |
int | RO | Romanian. |
int | RU | Russian. |
int | SK | Slovak. |
int | SL | Slovenian. |
int | SQ | Albanian. |
int | SV | Swedish. |
int | SW | Swahili. |
int | TA | Tamil. |
int | TE | Telugu. |
int | TH | Thai. |
int | TL | Tagalog. |
int | TR | Turkish. |
int | UK | Ukranian. |
int | UR | Urdu. |
int | VI | Vietnamese. |
int | ZH |
Public Method Summary
static Set<Integer> |
getAllLanguages()
Returns the set of all
FirebaseTranslateLanguage.TranslateLanguage values that are
supported by the Translate API.
|
static String |
languageCodeForLanguage(int language)
Returns the BCP-47 language code for the given
FirebaseTranslateLanguage.TranslateLanguage .
|
static Integer |
languageForLanguageCode(String
languageCode)
Returns the
FirebaseTranslateLanguage.TranslateLanguage for a given BCP-47
language code, or null if the language code is invalid or not
supported by the Translate API.
|
Inherited Method Summary
Constants
public static final int AF
Afrikaans.
public static final int AR
Arabic.
public static final int BE
Belarusian.
public static final int BG
Bulgarian.
public static final int BN
Bengali.
public static final int CA
Catalan.
public static final int CS
Czech.
public static final int CY
Welsh.
public static final int DA
Danish.
public static final int DE
German.
public static final int EL
Greek.
public static final int EN
English.
public static final int EO
Esperanto.
public static final int ES
Spanish.
public static final int ET
Estonian.
public static final int FA
Persian.
public static final int FI
Finnish.
public static final int FR
French.
public static final int GA
Irish.
public static final int GL
Galician.
public static final int GU
Gujarati.
public static final int HE
Hebrew.
public static final int HI
Hindi.
public static final int HR
Croatian.
public static final int HT
Haitian.
public static final int HU
Hungarian.
public static final int ID
Indonesian.
public static final int IS
Icelandic.
public static final int IT
Italian.
public static final int JA
Japanese.
public static final int KA
Georgian.
public static final int KN
Kannada.
public static final int KO
Korean.
public static final int LT
Lithuanian.
public static final int LV
Latvian.
public static final int MK
Macedonian.
public static final int MR
Marathi.
public static final int MS
Malay.
public static final int MT
Maltese.
public static final int NL
Dutch.
public static final int NO
Norwegian.
public static final int PL
Polish.
public static final int PT
Portuguese.
public static final int RO
Romanian.
public static final int RU
Russian.
public static final int SK
Slovak.
public static final int SL
Slovenian.
public static final int SQ
Albanian.
public static final int SV
Swedish.
public static final int SW
Swahili.
public static final int TA
Tamil.
public static final int TE
Telugu.
public static final int TH
Thai.
public static final int TL
Tagalog.
public static final int TR
Turkish.
public static final int UK
Ukranian.
public static final int UR
Urdu.
public static final int VI
Vietnamese.
public static final int ZH
Public Methods
public static Set<Integer> getAllLanguages ()
Returns the set of all
FirebaseTranslateLanguage.TranslateLanguage
values that are supported by the
Translate API.
public static String languageCodeForLanguage (int language)
Returns the BCP-47 language code for the given
FirebaseTranslateLanguage.TranslateLanguage
.
public static Integer languageForLanguageCode (String languageCode)
Returns the
FirebaseTranslateLanguage.TranslateLanguage
for a given BCP-47 language
code, or null
if the language code is invalid or not supported by the
Translate API.