1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ondevicepersonalization.services.data.user; 18 19 /** 20 * A enum class for all languages in ISO 639-1 format. 21 */ 22 public enum Language { 23 UNKNOWN, 24 AA, // Afar 25 AB, // Abkhazian 26 AE, // Avestan 27 AF, // Afrikaans 28 AK, // Akan 29 AM, // Amharic 30 AN, // Aragonese 31 AR, // Arabic 32 AS, // Assamese 33 AV, // Avaric 34 AY, // Aymara 35 AZ, // Azerbaijani 36 BA, // Bashkir 37 BE, // Belarusian 38 BG, // Bulgarian 39 BH, // Bihari languages 40 BI, // Bislama 41 BM, // Bambara 42 BN, // Bengali 43 BO, // Tibetan 44 BR, // Breton 45 BS, // Bosnian 46 CA, // Catalan; Valencian 47 CE, // Chechen 48 CH, // Chamorro 49 CO, // Corsican 50 CR, // Cree 51 CS, // Czech 52 CU, // Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic 53 CV, // Chuvash 54 CY, // Welsh 55 DA, // Danish 56 DE, // German 57 DV, // Divehi; Dhivehi; Maldivian 58 DZ, // Dzongkha 59 EE, // Ewe 60 EL, // "Greek 61 EN, // English 62 EO, // Esperanto 63 ES, // Spanish; Castilian 64 ET, // Estonian 65 EU, // Basque 66 FA, // Persian 67 FF, // Fulah 68 FI, // Finnish 69 FJ, // Fijian 70 FO, // Faroese 71 FR, // French 72 FY, // Western Frisian 73 GA, // Irish 74 GD, // Gaelic; Scottish Gaelic 75 GL, // Galician 76 GN, // Guarani 77 GU, // Gujarati 78 GV, // Manx 79 HA, // Hausa 80 HE, // Hebrew 81 HI, // Hindi 82 HO, // Hiri Motu 83 HR, // Croatian 84 HT, // Haitian; Haitian Creole 85 HU, // Hungarian 86 HY, // Armenian 87 HZ, // Herero 88 IA, // Interlingua (International Auxiliary Language Association) 89 ID, // Indonesian 90 IE, // Interlingue; Occidental 91 IG, // Igbo 92 II, // Sichuan Yi; Nuosu 93 IK, // Inupiaq 94 IO, // Ido 95 IS, // Icelandic 96 IT, // Italian 97 IU, // Inuktitut 98 JA, // Japanese 99 JV, // Javanese 100 KA, // Georgian 101 KG, // Kongo 102 KI, // Kikuyu; Gikuyu 103 KJ, // Kuanyama; Kwanyama 104 KK, // Kazakh 105 KL, // Kalaallisut; Greenlandic 106 KM, // Central Khmer 107 KN, // Kannada 108 KO, // Korean 109 KR, // Kanuri 110 KS, // Kashmiri 111 KU, // Kurdish 112 KV, // Komi 113 KW, // Cornish 114 KY, // Kirghiz; Kyrgyz 115 LA, // Latin 116 LB, // Luxembourgish; Letzeburgesch 117 LG, // Ganda 118 LI, // Limburgan; Limburger; Limburgish 119 LN, // Lingala 120 LO, // Lao 121 LT, // Lithuanian 122 LU, // Luba-Katanga 123 LV, // Latvian 124 MG, // Malagasy 125 MH, // Marshallese 126 MI, // Maori 127 MK, // Macedonian 128 ML, // Malayalam 129 MN, // Mongolian 130 MR, // Marathi 131 MS, // Malay 132 MT, // Maltese 133 MY, // Burmese 134 NA, // Nauru 135 NB, // "Bokmål 136 ND, // "Ndebele 137 NE, // Nepali 138 NG, // Ndonga 139 NL, // Dutch; Flemish 140 NN, // "Norwegian Nynorsk; Nynorsk 141 NO, // Norwegian 142 NR, // "Ndebele 143 NV, // Navajo; Navaho 144 NY, // Chichewa; Chewa; Nyanja 145 OC, // Occitan (post 1500) 146 OJ, // Ojibwa 147 OM, // Oromo 148 OR, // Oriya 149 OS, // Ossetian; Ossetic 150 PA, // Panjabi; Punjabi 151 PI, // Pali 152 PL, // Polish 153 PS, // Pushto; Pashto 154 PT, // Portuguese 155 QU, // Quechua 156 RM, // Romansh 157 RN, // Rundi 158 RO, // Romanian; Moldavian; Moldovan 159 RU, // Russian 160 RW, // Kinyarwanda 161 SA, // Sanskrit 162 SC, // Sardinian 163 SD, // Sindhi 164 SE, // Northern Sami 165 SG, // Sango 166 SI, // Sinhala; Sinhalese 167 SK, // Slovak 168 SL, // Slovenian 169 SM, // Samoan 170 SN, // Shona 171 SO, // Somali 172 SQ, // Albanian 173 SR, // Serbian 174 SS, // Swati 175 ST, // "Sotho 176 SU, // Sundanese 177 SV, // Swedish 178 SW, // Swahili 179 TA, // Tamil 180 TE, // Telugu 181 TG, // Tajik 182 TH, // Thai 183 TI, // Tigrinya 184 TK, // Turkmen 185 TL, // Tagalog 186 TN, // Tswana 187 TO, // Tonga (Tonga Islands) 188 TR, // Turkish 189 TS, // Tsonga 190 TT, // Tatar 191 TW, // Twi 192 TY, // Tahitian 193 UG, // Uighur; Uyghur 194 UK, // Ukrainian 195 UR, // Urdu 196 UZ, // Uzbek 197 VE, // Venda 198 VI, // Vietnamese 199 VO, // Volapük 200 WA, // Walloon 201 WO, // Wolof 202 XH, // Xhosa 203 YI, // Yiddish 204 YO, // Yoruba 205 ZA, // Zhuang; Chuang 206 ZH, // Chinese 207 ZU // Zulu 208 } 209