package greencode.jscript.dom.elements.attribute; public enum LanguageCode { Abkhazian("ab"), Afar("aa"), Afrikaans("af"), Albanian("sq"), Amharic("am"), Arabic("ar"), Aragonese("an"), Armenian("hy"), Assamese("as"), Aymara("ay"), Azerbaijani("az"), Bashkir("ba"), Basque("eu"), Bengali_Bangla("bn"), Bhutani("dz"), Bihari("bh"), Bislama("bi"), Breton("br"), Bulgarian("bg"), Burmese("my"), Byelorussian_Belarusian("be"), Cambodian("km"), Catalan("ca"), Cherokee(""), Chewa(""), Chinese("zh"), Chinese_Simplified("zh-Hans"), Chinese_Traditional("zh-Hant"), Corsican("co"), Croatian("hr"), Czech("cs"), Danish("da"), Divehi(""), Dutch("nl"), Edo(""), English("en"), Esperanto("eo"), Estonian("et"), Faeroese("fo"), Farsi("fa"), Fiji("fj"), Finnish("fi"), Flemish(""), French("fr"), Frisian("fy"), Fulfulde(""), Galician("gl"), Gaelic_Scottish("gd"), Gaelic_Manx("gv"), Georgian("ka"), German("de"), Greek("el"), Greenlandic("kl"), Guarani("gn"), Gujarati("gu"), Haitian_Creole("ht"), Hausa("ha"), Hawaiian(""), Hebrew("he"), Hindi("hi"), Hungarian("hu"), Ibibio(""), Icelandic("is"), Ido("io"), Igbo(""), Indonesian("id"), Interlingua("ia"), Interlingue("ie"), Inuktitut("iu"), Inupiak("ik"), Irish("ga"), Italian("it"), Japanese("ja"), Javanese("jv"), Kannada("kn"), Kanuri(""), Kashmiri("ks"), Kazakh("kk"), Kinyarwanda_Ruanda("rw"), Kirghiz("ky"), Kirundi_Rundi("rn"), Konkani(""), Korean("ko"), Kurdish("ku"), Laothian("lo"), Latin("la"), Latvian_Lettish("lv"), Limburgish_Limburger("li"), Lingala("ln"), Lithuanian("lt"), Macedonian("mk"), Malagasy("mg"), Malay("ms"), Malayalam("ml"), Maltese("mt"), Maori("mi"), Marathi("mr"), Moldavian("mo"), Mongolian("mn"), Nauru("na"), Nepali("ne"), Norwegian("no"), Occitan("oc"), Oriya("or"), Oromo_Afaan_Oromo("om"), Papiamentu(""), Pashto_Pushto("ps"), Polish("pl"), Portuguese("pt"), Punjabi("pa"), Quechua("qu"), Rhaeto_Romance("rm"), Romanian("ro"), Russian("ru"), Sami_Lappish(""), Samoan("sm"), Sangro("sg"), Sanskrit("sa"), Serbian("sr"), Serbo_Croatian("sh"), Sesotho("st"), Setswana("tn"), Shona("sn"), Sichuan_Yi("ii"), Sindhi("sd"), Sinhalese("si"), Siswati("ss"), Slovak("sk"), Slovenian("sl"), Somali("so"), Spanish("es"), Sundanese("su"), Swahili_Kiswahili("sw"), Swedish("sv"), Syriac(""), Tagalog("tl"), Tajik("tg"), Tamazight(""), Tamil("ta"), Tatar("tt"), Telugu("te"), Thai("th"), Tibetan("bo"), Tigrinya("ti"), Tonga("to"), Tsonga("ts"), Turkish("tr"), Turkmen("tk"), Twi("tw"), Uighur("ug"), Ukrainian("uk"), Urdu("ur"), Uzbek("uz"), Venda(""), Vietnamese("vi"), Volapuk("vo"), Wallon("wa"), Welsh("cy"), Wolof("wo"), Xhosa("xh"), Yi(""), Yiddish("yi"), Yoruba("yo"), Zulu("zu"); public final String isoCode; private LanguageCode(String isoCode) { this.isoCode = isoCode; } public static LanguageCode getByISOCode(String isoCode) { for (LanguageCode lc : LanguageCode.values()) { if(lc.isoCode.equals(isoCode)) return lc; } return null; } }