pub enum Lang {
Show 69 variants
Epo = 0,
Eng = 1,
Rus = 2,
Cmn = 3,
Spa = 4,
Por = 5,
Ita = 6,
Ben = 7,
Fra = 8,
Deu = 9,
Ukr = 10,
Kat = 11,
Ara = 12,
Hin = 13,
Jpn = 14,
Heb = 15,
Yid = 16,
Pol = 17,
Amh = 18,
Jav = 19,
Kor = 20,
Nob = 21,
Dan = 22,
Swe = 23,
Fin = 24,
Tur = 25,
Nld = 26,
Hun = 27,
Ces = 28,
Ell = 29,
Bul = 30,
Bel = 31,
Mar = 32,
Kan = 33,
Ron = 34,
Slv = 35,
Hrv = 36,
Srp = 37,
Mkd = 38,
Lit = 39,
Lav = 40,
Est = 41,
Tam = 42,
Vie = 43,
Urd = 44,
Tha = 45,
Guj = 46,
Uzb = 47,
Pan = 48,
Aze = 49,
Ind = 50,
Tel = 51,
Pes = 52,
Mal = 53,
Ori = 54,
Mya = 55,
Nep = 56,
Sin = 57,
Khm = 58,
Tuk = 59,
Aka = 60,
Zul = 61,
Sna = 62,
Afr = 63,
Lat = 64,
Slk = 65,
Cat = 66,
Tgl = 67,
Hye = 68,
}
Expand description
Represents a language following ISO 639-3 standard.
Variants§
Epo = 0
Esperanto (Esperanto)
Eng = 1
English (English)
Rus = 2
Русский (Russian)
Cmn = 3
普通话 (Mandarin)
Spa = 4
Español (Spanish)
Por = 5
Português (Portuguese)
Ita = 6
Italiano (Italian)
Ben = 7
বাংলা (Bengali)
Fra = 8
Français (French)
Deu = 9
Deutsch (German)
Ukr = 10
Українська (Ukrainian)
Kat = 11
ქართული (Georgian)
Ara = 12
العربية (Arabic)
Hin = 13
हिन्दी (Hindi)
Jpn = 14
日本語 (Japanese)
Heb = 15
עברית (Hebrew)
Yid = 16
ייִדיש (Yiddish)
Pol = 17
Polski (Polish)
Amh = 18
አማርኛ (Amharic)
Jav = 19
Basa Jawa (Javanese)
Kor = 20
한국어 (Korean)
Nob = 21
Bokmål (Bokmal)
Dan = 22
Dansk (Danish)
Swe = 23
Svenska (Swedish)
Fin = 24
Suomi (Finnish)
Tur = 25
Türkçe (Turkish)
Nld = 26
Nederlands (Dutch)
Hun = 27
Magyar (Hungarian)
Ces = 28
Čeština (Czech)
Ell = 29
Ελληνικά (Greek)
Bul = 30
Български (Bulgarian)
Bel = 31
Беларуская (Belarusian)
Mar = 32
मराठी (Marathi)
Kan = 33
ಕನ್ನಡ (Kannada)
Ron = 34
Română (Romanian)
Slv = 35
Slovenščina (Slovene)
Hrv = 36
Hrvatski (Croatian)
Srp = 37
Српски (Serbian)
Mkd = 38
Македонски (Macedonian)
Lit = 39
Lietuvių (Lithuanian)
Lav = 40
Latviešu (Latvian)
Est = 41
Eesti (Estonian)
Tam = 42
தமிழ் (Tamil)
Vie = 43
Tiếng Việt (Vietnamese)
Urd = 44
اُردُو (Urdu)
Tha = 45
ภาษาไทย (Thai)
Guj = 46
ગુજરાતી (Gujarati)
Uzb = 47
Oʻzbekcha (Uzbek)
Pan = 48
ਪੰਜਾਬੀ (Punjabi)
Aze = 49
Azərbaycanca (Azerbaijani)
Ind = 50
Bahasa Indonesia (Indonesian)
Tel = 51
తెలుగు (Telugu)
Pes = 52
فارسی (Persian)
Mal = 53
മലയാളം (Malayalam)
Ori = 54
ଓଡ଼ିଆ (Oriya)
Mya = 55
မြန်မာစာ (Burmese)
Nep = 56
नेपाली (Nepali)
Sin = 57
සිංහල (Sinhalese)
Khm = 58
ភាសាខ្មែរ (Khmer)
Tuk = 59
Türkmençe (Turkmen)
Aka = 60
Akan (Akan)
Zul = 61
IsiZulu (Zulu)
Sna = 62
ChiShona (Shona)
Afr = 63
Afrikaans (Afrikaans)
Lat = 64
Lingua Latina (Latin)
Slk = 65
Slovenčina (Slovak)
Cat = 66
Català (Catalan)
Tgl = 67
Tagalog (Tagalog)
Hye = 68
Հայերեն (Armenian)
Implementations§
source§impl Lang
impl Lang
sourcepub fn from_code<S: Into<String>>(code: S) -> Option<Lang>
pub fn from_code<S: Into<String>>(code: S) -> Option<Lang>
Get enum by ISO 639-3 code as a string.
Example
use whatlang::Lang;
assert_eq!(Lang::from_code("ukr"), Some(Lang::Ukr));
sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
Convert enum into ISO 639-3 code as a string.
Example
use whatlang::Lang;
assert_eq!(Lang::Ukr.code(), "ukr");
sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Get a language name in the language itself.
Example
use whatlang::Lang;
assert_eq!(Lang::Ukr.name(), "Українська");