FirebaseTranslateLanguage

public class FirebaseTranslateLanguage extends Object

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.

Constant Value: 0

public static final int AR

Arabic.

Constant Value: 1

public static final int BE

Belarusian.

Constant Value: 2

public static final int BG

Bulgarian.

Constant Value: 3

public static final int BN

Bengali.

Constant Value: 4

public static final int CA

Catalan.

Constant Value: 5

public static final int CS

Czech.

Constant Value: 6

public static final int CY

Welsh.

Constant Value: 7

public static final int DA

Danish.

Constant Value: 8

public static final int DE

German.

Constant Value: 9

public static final int EL

Greek.

Constant Value: 10

public static final int EN

English.

Constant Value: 11

public static final int EO

Esperanto.

Constant Value: 12

public static final int ES

Spanish.

Constant Value: 13

public static final int ET

Estonian.

Constant Value: 14

public static final int FA

Persian.

Constant Value: 15

public static final int FI

Finnish.

Constant Value: 16

public static final int FR

French.

Constant Value: 17

public static final int GA

Irish.

Constant Value: 18

public static final int GL

Galician.

Constant Value: 19

public static final int GU

Gujarati.

Constant Value: 20

public static final int HE

Hebrew.

Constant Value: 21

public static final int HI

Hindi.

Constant Value: 22

public static final int HR

Croatian.

Constant Value: 23

public static final int HT

Haitian.

Constant Value: 24

public static final int HU

Hungarian.

Constant Value: 25

public static final int ID

Indonesian.

Constant Value: 26

public static final int IS

Icelandic.

Constant Value: 27

public static final int IT

Italian.

Constant Value: 28

public static final int JA

Japanese.

Constant Value: 29

public static final int KA

Georgian.

Constant Value: 30

public static final int KN

Kannada.

Constant Value: 31

public static final int KO

Korean.

Constant Value: 32

public static final int LT

Lithuanian.

Constant Value: 33

public static final int LV

Latvian.

Constant Value: 34

public static final int MK

Macedonian.

Constant Value: 35

public static final int MR

Marathi.

Constant Value: 36

public static final int MS

Malay.

Constant Value: 37

public static final int MT

Maltese.

Constant Value: 38

public static final int NL

Dutch.

Constant Value: 39

public static final int NO

Norwegian.

Constant Value: 40

public static final int PL

Polish.

Constant Value: 41

public static final int PT

Portuguese.

Constant Value: 42

public static final int RO

Romanian.

Constant Value: 43

public static final int RU

Russian.

Constant Value: 44

public static final int SK

Slovak.

Constant Value: 45

public static final int SL

Slovenian.

Constant Value: 46

public static final int SQ

Albanian.

Constant Value: 47

public static final int SV

Swedish.

Constant Value: 48

public static final int SW

Swahili.

Constant Value: 49

public static final int TA

Tamil.

Constant Value: 50

public static final int TE

Telugu.

Constant Value: 51

public static final int TH

Thai.

Constant Value: 52

public static final int TL

Tagalog.

Constant Value: 53

public static final int TR

Turkish.

Constant Value: 54

public static final int UK

Ukranian.

Constant Value: 55

public static final int UR

Urdu.

Constant Value: 56

public static final int VI

Vietnamese.

Constant Value: 57

public static final int ZH

Constant Value: 58

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.