Go to console

FirebaseTranslateLanguage

public class FirebaseTranslateLanguage extends Object

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.