PageRenderTime 16ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/github.com/asaskevich/govalidator/types.go

https://bitbucket.org/anzellai/kitty
Go | 616 lines | 579 code | 19 blank | 18 comment | 2 complexity | 00ff2e355d8e8532cd5bd3b0e2a27ebe MD5 | raw file
Possible License(s): BSD-3-Clause, MPL-2.0-no-copyleft-exception, Apache-2.0, BSD-2-Clause
  1. package govalidator
  2. import (
  3. "reflect"
  4. "regexp"
  5. "sync"
  6. )
  7. // Validator is a wrapper for a validator function that returns bool and accepts string.
  8. type Validator func(str string) bool
  9. // CustomTypeValidator is a wrapper for validator functions that returns bool and accepts any type.
  10. // The second parameter should be the context (in the case of validating a struct: the whole object being validated).
  11. type CustomTypeValidator func(i interface{}, o interface{}) bool
  12. // ParamValidator is a wrapper for validator functions that accepts additional parameters.
  13. type ParamValidator func(str string, params ...string) bool
  14. type tagOptionsMap map[string]string
  15. // UnsupportedTypeError is a wrapper for reflect.Type
  16. type UnsupportedTypeError struct {
  17. Type reflect.Type
  18. }
  19. // stringValues is a slice of reflect.Value holding *reflect.StringValue.
  20. // It implements the methods to sort by string.
  21. type stringValues []reflect.Value
  22. // ParamTagMap is a map of functions accept variants parameters
  23. var ParamTagMap = map[string]ParamValidator{
  24. "length": ByteLength,
  25. "range": Range,
  26. "runelength": RuneLength,
  27. "stringlength": StringLength,
  28. "matches": StringMatches,
  29. "in": isInRaw,
  30. "rsapub": IsRsaPub,
  31. }
  32. // ParamTagRegexMap maps param tags to their respective regexes.
  33. var ParamTagRegexMap = map[string]*regexp.Regexp{
  34. "range": regexp.MustCompile("^range\\((\\d+)\\|(\\d+)\\)$"),
  35. "length": regexp.MustCompile("^length\\((\\d+)\\|(\\d+)\\)$"),
  36. "runelength": regexp.MustCompile("^runelength\\((\\d+)\\|(\\d+)\\)$"),
  37. "stringlength": regexp.MustCompile("^stringlength\\((\\d+)\\|(\\d+)\\)$"),
  38. "in": regexp.MustCompile(`^in\((.*)\)`),
  39. "matches": regexp.MustCompile(`^matches\((.+)\)$`),
  40. "rsapub": regexp.MustCompile("^rsapub\\((\\d+)\\)$"),
  41. }
  42. type customTypeTagMap struct {
  43. validators map[string]CustomTypeValidator
  44. sync.RWMutex
  45. }
  46. func (tm *customTypeTagMap) Get(name string) (CustomTypeValidator, bool) {
  47. tm.RLock()
  48. defer tm.RUnlock()
  49. v, ok := tm.validators[name]
  50. return v, ok
  51. }
  52. func (tm *customTypeTagMap) Set(name string, ctv CustomTypeValidator) {
  53. tm.Lock()
  54. defer tm.Unlock()
  55. tm.validators[name] = ctv
  56. }
  57. // CustomTypeTagMap is a map of functions that can be used as tags for ValidateStruct function.
  58. // Use this to validate compound or custom types that need to be handled as a whole, e.g.
  59. // `type UUID [16]byte` (this would be handled as an array of bytes).
  60. var CustomTypeTagMap = &customTypeTagMap{validators: make(map[string]CustomTypeValidator)}
  61. // TagMap is a map of functions, that can be used as tags for ValidateStruct function.
  62. var TagMap = map[string]Validator{
  63. "email": IsEmail,
  64. "url": IsURL,
  65. "dialstring": IsDialString,
  66. "requrl": IsRequestURL,
  67. "requri": IsRequestURI,
  68. "alpha": IsAlpha,
  69. "utfletter": IsUTFLetter,
  70. "alphanum": IsAlphanumeric,
  71. "utfletternum": IsUTFLetterNumeric,
  72. "numeric": IsNumeric,
  73. "utfnumeric": IsUTFNumeric,
  74. "utfdigit": IsUTFDigit,
  75. "hexadecimal": IsHexadecimal,
  76. "hexcolor": IsHexcolor,
  77. "rgbcolor": IsRGBcolor,
  78. "lowercase": IsLowerCase,
  79. "uppercase": IsUpperCase,
  80. "int": IsInt,
  81. "float": IsFloat,
  82. "null": IsNull,
  83. "uuid": IsUUID,
  84. "uuidv3": IsUUIDv3,
  85. "uuidv4": IsUUIDv4,
  86. "uuidv5": IsUUIDv5,
  87. "creditcard": IsCreditCard,
  88. "isbn10": IsISBN10,
  89. "isbn13": IsISBN13,
  90. "json": IsJSON,
  91. "multibyte": IsMultibyte,
  92. "ascii": IsASCII,
  93. "printableascii": IsPrintableASCII,
  94. "fullwidth": IsFullWidth,
  95. "halfwidth": IsHalfWidth,
  96. "variablewidth": IsVariableWidth,
  97. "base64": IsBase64,
  98. "datauri": IsDataURI,
  99. "ip": IsIP,
  100. "port": IsPort,
  101. "ipv4": IsIPv4,
  102. "ipv6": IsIPv6,
  103. "dns": IsDNSName,
  104. "host": IsHost,
  105. "mac": IsMAC,
  106. "latitude": IsLatitude,
  107. "longitude": IsLongitude,
  108. "ssn": IsSSN,
  109. "semver": IsSemver,
  110. "rfc3339": IsRFC3339,
  111. "rfc3339WithoutZone": IsRFC3339WithoutZone,
  112. "ISO3166Alpha2": IsISO3166Alpha2,
  113. "ISO3166Alpha3": IsISO3166Alpha3,
  114. "ISO4217": IsISO4217,
  115. }
  116. // ISO3166Entry stores country codes
  117. type ISO3166Entry struct {
  118. EnglishShortName string
  119. FrenchShortName string
  120. Alpha2Code string
  121. Alpha3Code string
  122. Numeric string
  123. }
  124. //ISO3166List based on https://www.iso.org/obp/ui/#search/code/ Code Type "Officially Assigned Codes"
  125. var ISO3166List = []ISO3166Entry{
  126. {"Afghanistan", "Afghanistan (l')", "AF", "AFG", "004"},
  127. {"Albania", "Albanie (l')", "AL", "ALB", "008"},
  128. {"Antarctica", "Antarctique (l')", "AQ", "ATA", "010"},
  129. {"Algeria", "Algérie (l')", "DZ", "DZA", "012"},
  130. {"American Samoa", "Samoa américaines (les)", "AS", "ASM", "016"},
  131. {"Andorra", "Andorre (l')", "AD", "AND", "020"},
  132. {"Angola", "Angola (l')", "AO", "AGO", "024"},
  133. {"Antigua and Barbuda", "Antigua-et-Barbuda", "AG", "ATG", "028"},
  134. {"Azerbaijan", "Azerbaïdjan (l')", "AZ", "AZE", "031"},
  135. {"Argentina", "Argentine (l')", "AR", "ARG", "032"},
  136. {"Australia", "Australie (l')", "AU", "AUS", "036"},
  137. {"Austria", "Autriche (l')", "AT", "AUT", "040"},
  138. {"Bahamas (the)", "Bahamas (les)", "BS", "BHS", "044"},
  139. {"Bahrain", "Bahreïn", "BH", "BHR", "048"},
  140. {"Bangladesh", "Bangladesh (le)", "BD", "BGD", "050"},
  141. {"Armenia", "Arménie (l')", "AM", "ARM", "051"},
  142. {"Barbados", "Barbade (la)", "BB", "BRB", "052"},
  143. {"Belgium", "Belgique (la)", "BE", "BEL", "056"},
  144. {"Bermuda", "Bermudes (les)", "BM", "BMU", "060"},
  145. {"Bhutan", "Bhoutan (le)", "BT", "BTN", "064"},
  146. {"Bolivia (Plurinational State of)", "Bolivie (État plurinational de)", "BO", "BOL", "068"},
  147. {"Bosnia and Herzegovina", "Bosnie-Herzégovine (la)", "BA", "BIH", "070"},
  148. {"Botswana", "Botswana (le)", "BW", "BWA", "072"},
  149. {"Bouvet Island", "Bouvet (l'Île)", "BV", "BVT", "074"},
  150. {"Brazil", "Brésil (le)", "BR", "BRA", "076"},
  151. {"Belize", "Belize (le)", "BZ", "BLZ", "084"},
  152. {"British Indian Ocean Territory (the)", "Indien (le Territoire britannique de l'océan)", "IO", "IOT", "086"},
  153. {"Solomon Islands", "Salomon (Îles)", "SB", "SLB", "090"},
  154. {"Virgin Islands (British)", "Vierges britanniques (les Îles)", "VG", "VGB", "092"},
  155. {"Brunei Darussalam", "Brunéi Darussalam (le)", "BN", "BRN", "096"},
  156. {"Bulgaria", "Bulgarie (la)", "BG", "BGR", "100"},
  157. {"Myanmar", "Myanmar (le)", "MM", "MMR", "104"},
  158. {"Burundi", "Burundi (le)", "BI", "BDI", "108"},
  159. {"Belarus", "Bélarus (le)", "BY", "BLR", "112"},
  160. {"Cambodia", "Cambodge (le)", "KH", "KHM", "116"},
  161. {"Cameroon", "Cameroun (le)", "CM", "CMR", "120"},
  162. {"Canada", "Canada (le)", "CA", "CAN", "124"},
  163. {"Cabo Verde", "Cabo Verde", "CV", "CPV", "132"},
  164. {"Cayman Islands (the)", "Caïmans (les Îles)", "KY", "CYM", "136"},
  165. {"Central African Republic (the)", "République centrafricaine (la)", "CF", "CAF", "140"},
  166. {"Sri Lanka", "Sri Lanka", "LK", "LKA", "144"},
  167. {"Chad", "Tchad (le)", "TD", "TCD", "148"},
  168. {"Chile", "Chili (le)", "CL", "CHL", "152"},
  169. {"China", "Chine (la)", "CN", "CHN", "156"},
  170. {"Taiwan (Province of China)", "Taïwan (Province de Chine)", "TW", "TWN", "158"},
  171. {"Christmas Island", "Christmas (l'Île)", "CX", "CXR", "162"},
  172. {"Cocos (Keeling) Islands (the)", "Cocos (les Îles)/ Keeling (les Îles)", "CC", "CCK", "166"},
  173. {"Colombia", "Colombie (la)", "CO", "COL", "170"},
  174. {"Comoros (the)", "Comores (les)", "KM", "COM", "174"},
  175. {"Mayotte", "Mayotte", "YT", "MYT", "175"},
  176. {"Congo (the)", "Congo (le)", "CG", "COG", "178"},
  177. {"Congo (the Democratic Republic of the)", "Congo (la République démocratique du)", "CD", "COD", "180"},
  178. {"Cook Islands (the)", "Cook (les Îles)", "CK", "COK", "184"},
  179. {"Costa Rica", "Costa Rica (le)", "CR", "CRI", "188"},
  180. {"Croatia", "Croatie (la)", "HR", "HRV", "191"},
  181. {"Cuba", "Cuba", "CU", "CUB", "192"},
  182. {"Cyprus", "Chypre", "CY", "CYP", "196"},
  183. {"Czech Republic (the)", "tchèque (la République)", "CZ", "CZE", "203"},
  184. {"Benin", "Bénin (le)", "BJ", "BEN", "204"},
  185. {"Denmark", "Danemark (le)", "DK", "DNK", "208"},
  186. {"Dominica", "Dominique (la)", "DM", "DMA", "212"},
  187. {"Dominican Republic (the)", "dominicaine (la République)", "DO", "DOM", "214"},
  188. {"Ecuador", "Équateur (l')", "EC", "ECU", "218"},
  189. {"El Salvador", "El Salvador", "SV", "SLV", "222"},
  190. {"Equatorial Guinea", "Guinée équatoriale (la)", "GQ", "GNQ", "226"},
  191. {"Ethiopia", "Éthiopie (l')", "ET", "ETH", "231"},
  192. {"Eritrea", "Érythrée (l')", "ER", "ERI", "232"},
  193. {"Estonia", "Estonie (l')", "EE", "EST", "233"},
  194. {"Faroe Islands (the)", "Féroé (les Îles)", "FO", "FRO", "234"},
  195. {"Falkland Islands (the) [Malvinas]", "Falkland (les Îles)/Malouines (les Îles)", "FK", "FLK", "238"},
  196. {"South Georgia and the South Sandwich Islands", "Géorgie du Sud-et-les Îles Sandwich du Sud (la)", "GS", "SGS", "239"},
  197. {"Fiji", "Fidji (les)", "FJ", "FJI", "242"},
  198. {"Finland", "Finlande (la)", "FI", "FIN", "246"},
  199. {"Åland Islands", "Åland(les Îles)", "AX", "ALA", "248"},
  200. {"France", "France (la)", "FR", "FRA", "250"},
  201. {"French Guiana", "Guyane française (la )", "GF", "GUF", "254"},
  202. {"French Polynesia", "Polynésie française (la)", "PF", "PYF", "258"},
  203. {"French Southern Territories (the)", "Terres australes françaises (les)", "TF", "ATF", "260"},
  204. {"Djibouti", "Djibouti", "DJ", "DJI", "262"},
  205. {"Gabon", "Gabon (le)", "GA", "GAB", "266"},
  206. {"Georgia", "Géorgie (la)", "GE", "GEO", "268"},
  207. {"Gambia (the)", "Gambie (la)", "GM", "GMB", "270"},
  208. {"Palestine, State of", "Palestine, État de", "PS", "PSE", "275"},
  209. {"Germany", "Allemagne (l')", "DE", "DEU", "276"},
  210. {"Ghana", "Ghana (le)", "GH", "GHA", "288"},
  211. {"Gibraltar", "Gibraltar", "GI", "GIB", "292"},
  212. {"Kiribati", "Kiribati", "KI", "KIR", "296"},
  213. {"Greece", "Grèce (la)", "GR", "GRC", "300"},
  214. {"Greenland", "Groenland (le)", "GL", "GRL", "304"},
  215. {"Grenada", "Grenade (la)", "GD", "GRD", "308"},
  216. {"Guadeloupe", "Guadeloupe (la)", "GP", "GLP", "312"},
  217. {"Guam", "Guam", "GU", "GUM", "316"},
  218. {"Guatemala", "Guatemala (le)", "GT", "GTM", "320"},
  219. {"Guinea", "Guinée (la)", "GN", "GIN", "324"},
  220. {"Guyana", "Guyana (le)", "GY", "GUY", "328"},
  221. {"Haiti", "Haïti", "HT", "HTI", "332"},
  222. {"Heard Island and McDonald Islands", "Heard-et-Îles MacDonald (l'Île)", "HM", "HMD", "334"},
  223. {"Holy See (the)", "Saint-Siège (le)", "VA", "VAT", "336"},
  224. {"Honduras", "Honduras (le)", "HN", "HND", "340"},
  225. {"Hong Kong", "Hong Kong", "HK", "HKG", "344"},
  226. {"Hungary", "Hongrie (la)", "HU", "HUN", "348"},
  227. {"Iceland", "Islande (l')", "IS", "ISL", "352"},
  228. {"India", "Inde (l')", "IN", "IND", "356"},
  229. {"Indonesia", "Indonésie (l')", "ID", "IDN", "360"},
  230. {"Iran (Islamic Republic of)", "Iran (République Islamique d')", "IR", "IRN", "364"},
  231. {"Iraq", "Iraq (l')", "IQ", "IRQ", "368"},
  232. {"Ireland", "Irlande (l')", "IE", "IRL", "372"},
  233. {"Israel", "Israël", "IL", "ISR", "376"},
  234. {"Italy", "Italie (l')", "IT", "ITA", "380"},
  235. {"Côte d'Ivoire", "Côte d'Ivoire (la)", "CI", "CIV", "384"},
  236. {"Jamaica", "Jamaïque (la)", "JM", "JAM", "388"},
  237. {"Japan", "Japon (le)", "JP", "JPN", "392"},
  238. {"Kazakhstan", "Kazakhstan (le)", "KZ", "KAZ", "398"},
  239. {"Jordan", "Jordanie (la)", "JO", "JOR", "400"},
  240. {"Kenya", "Kenya (le)", "KE", "KEN", "404"},
  241. {"Korea (the Democratic People's Republic of)", "Corée (la République populaire démocratique de)", "KP", "PRK", "408"},
  242. {"Korea (the Republic of)", "Corée (la République de)", "KR", "KOR", "410"},
  243. {"Kuwait", "Koweït (le)", "KW", "KWT", "414"},
  244. {"Kyrgyzstan", "Kirghizistan (le)", "KG", "KGZ", "417"},
  245. {"Lao People's Democratic Republic (the)", "Lao, République démocratique populaire", "LA", "LAO", "418"},
  246. {"Lebanon", "Liban (le)", "LB", "LBN", "422"},
  247. {"Lesotho", "Lesotho (le)", "LS", "LSO", "426"},
  248. {"Latvia", "Lettonie (la)", "LV", "LVA", "428"},
  249. {"Liberia", "Libéria (le)", "LR", "LBR", "430"},
  250. {"Libya", "Libye (la)", "LY", "LBY", "434"},
  251. {"Liechtenstein", "Liechtenstein (le)", "LI", "LIE", "438"},
  252. {"Lithuania", "Lituanie (la)", "LT", "LTU", "440"},
  253. {"Luxembourg", "Luxembourg (le)", "LU", "LUX", "442"},
  254. {"Macao", "Macao", "MO", "MAC", "446"},
  255. {"Madagascar", "Madagascar", "MG", "MDG", "450"},
  256. {"Malawi", "Malawi (le)", "MW", "MWI", "454"},
  257. {"Malaysia", "Malaisie (la)", "MY", "MYS", "458"},
  258. {"Maldives", "Maldives (les)", "MV", "MDV", "462"},
  259. {"Mali", "Mali (le)", "ML", "MLI", "466"},
  260. {"Malta", "Malte", "MT", "MLT", "470"},
  261. {"Martinique", "Martinique (la)", "MQ", "MTQ", "474"},
  262. {"Mauritania", "Mauritanie (la)", "MR", "MRT", "478"},
  263. {"Mauritius", "Maurice", "MU", "MUS", "480"},
  264. {"Mexico", "Mexique (le)", "MX", "MEX", "484"},
  265. {"Monaco", "Monaco", "MC", "MCO", "492"},
  266. {"Mongolia", "Mongolie (la)", "MN", "MNG", "496"},
  267. {"Moldova (the Republic of)", "Moldova , République de", "MD", "MDA", "498"},
  268. {"Montenegro", "Monténégro (le)", "ME", "MNE", "499"},
  269. {"Montserrat", "Montserrat", "MS", "MSR", "500"},
  270. {"Morocco", "Maroc (le)", "MA", "MAR", "504"},
  271. {"Mozambique", "Mozambique (le)", "MZ", "MOZ", "508"},
  272. {"Oman", "Oman", "OM", "OMN", "512"},
  273. {"Namibia", "Namibie (la)", "NA", "NAM", "516"},
  274. {"Nauru", "Nauru", "NR", "NRU", "520"},
  275. {"Nepal", "Népal (le)", "NP", "NPL", "524"},
  276. {"Netherlands (the)", "Pays-Bas (les)", "NL", "NLD", "528"},
  277. {"Curaçao", "Curaçao", "CW", "CUW", "531"},
  278. {"Aruba", "Aruba", "AW", "ABW", "533"},
  279. {"Sint Maarten (Dutch part)", "Saint-Martin (partie néerlandaise)", "SX", "SXM", "534"},
  280. {"Bonaire, Sint Eustatius and Saba", "Bonaire, Saint-Eustache et Saba", "BQ", "BES", "535"},
  281. {"New Caledonia", "Nouvelle-Calédonie (la)", "NC", "NCL", "540"},
  282. {"Vanuatu", "Vanuatu (le)", "VU", "VUT", "548"},
  283. {"New Zealand", "Nouvelle-Zélande (la)", "NZ", "NZL", "554"},
  284. {"Nicaragua", "Nicaragua (le)", "NI", "NIC", "558"},
  285. {"Niger (the)", "Niger (le)", "NE", "NER", "562"},
  286. {"Nigeria", "Nigéria (le)", "NG", "NGA", "566"},
  287. {"Niue", "Niue", "NU", "NIU", "570"},
  288. {"Norfolk Island", "Norfolk (l'Île)", "NF", "NFK", "574"},
  289. {"Norway", "Norvège (la)", "NO", "NOR", "578"},
  290. {"Northern Mariana Islands (the)", "Mariannes du Nord (les Îles)", "MP", "MNP", "580"},
  291. {"United States Minor Outlying Islands (the)", "Îles mineures éloignées des États-Unis (les)", "UM", "UMI", "581"},
  292. {"Micronesia (Federated States of)", "Micronésie (États fédérés de)", "FM", "FSM", "583"},
  293. {"Marshall Islands (the)", "Marshall (Îles)", "MH", "MHL", "584"},
  294. {"Palau", "Palaos (les)", "PW", "PLW", "585"},
  295. {"Pakistan", "Pakistan (le)", "PK", "PAK", "586"},
  296. {"Panama", "Panama (le)", "PA", "PAN", "591"},
  297. {"Papua New Guinea", "Papouasie-Nouvelle-Guinée (la)", "PG", "PNG", "598"},
  298. {"Paraguay", "Paraguay (le)", "PY", "PRY", "600"},
  299. {"Peru", "Pérou (le)", "PE", "PER", "604"},
  300. {"Philippines (the)", "Philippines (les)", "PH", "PHL", "608"},
  301. {"Pitcairn", "Pitcairn", "PN", "PCN", "612"},
  302. {"Poland", "Pologne (la)", "PL", "POL", "616"},
  303. {"Portugal", "Portugal (le)", "PT", "PRT", "620"},
  304. {"Guinea-Bissau", "Guinée-Bissau (la)", "GW", "GNB", "624"},
  305. {"Timor-Leste", "Timor-Leste (le)", "TL", "TLS", "626"},
  306. {"Puerto Rico", "Porto Rico", "PR", "PRI", "630"},
  307. {"Qatar", "Qatar (le)", "QA", "QAT", "634"},
  308. {"Réunion", "Réunion (La)", "RE", "REU", "638"},
  309. {"Romania", "Roumanie (la)", "RO", "ROU", "642"},
  310. {"Russian Federation (the)", "Russie (la Fédération de)", "RU", "RUS", "643"},
  311. {"Rwanda", "Rwanda (le)", "RW", "RWA", "646"},
  312. {"Saint Barthélemy", "Saint-Barthélemy", "BL", "BLM", "652"},
  313. {"Saint Helena, Ascension and Tristan da Cunha", "Sainte-Hélène, Ascension et Tristan da Cunha", "SH", "SHN", "654"},
  314. {"Saint Kitts and Nevis", "Saint-Kitts-et-Nevis", "KN", "KNA", "659"},
  315. {"Anguilla", "Anguilla", "AI", "AIA", "660"},
  316. {"Saint Lucia", "Sainte-Lucie", "LC", "LCA", "662"},
  317. {"Saint Martin (French part)", "Saint-Martin (partie française)", "MF", "MAF", "663"},
  318. {"Saint Pierre and Miquelon", "Saint-Pierre-et-Miquelon", "PM", "SPM", "666"},
  319. {"Saint Vincent and the Grenadines", "Saint-Vincent-et-les Grenadines", "VC", "VCT", "670"},
  320. {"San Marino", "Saint-Marin", "SM", "SMR", "674"},
  321. {"Sao Tome and Principe", "Sao Tomé-et-Principe", "ST", "STP", "678"},
  322. {"Saudi Arabia", "Arabie saoudite (l')", "SA", "SAU", "682"},
  323. {"Senegal", "Sénégal (le)", "SN", "SEN", "686"},
  324. {"Serbia", "Serbie (la)", "RS", "SRB", "688"},
  325. {"Seychelles", "Seychelles (les)", "SC", "SYC", "690"},
  326. {"Sierra Leone", "Sierra Leone (la)", "SL", "SLE", "694"},
  327. {"Singapore", "Singapour", "SG", "SGP", "702"},
  328. {"Slovakia", "Slovaquie (la)", "SK", "SVK", "703"},
  329. {"Viet Nam", "Viet Nam (le)", "VN", "VNM", "704"},
  330. {"Slovenia", "Slovénie (la)", "SI", "SVN", "705"},
  331. {"Somalia", "Somalie (la)", "SO", "SOM", "706"},
  332. {"South Africa", "Afrique du Sud (l')", "ZA", "ZAF", "710"},
  333. {"Zimbabwe", "Zimbabwe (le)", "ZW", "ZWE", "716"},
  334. {"Spain", "Espagne (l')", "ES", "ESP", "724"},
  335. {"South Sudan", "Soudan du Sud (le)", "SS", "SSD", "728"},
  336. {"Sudan (the)", "Soudan (le)", "SD", "SDN", "729"},
  337. {"Western Sahara*", "Sahara occidental (le)*", "EH", "ESH", "732"},
  338. {"Suriname", "Suriname (le)", "SR", "SUR", "740"},
  339. {"Svalbard and Jan Mayen", "Svalbard et l'Île Jan Mayen (le)", "SJ", "SJM", "744"},
  340. {"Swaziland", "Swaziland (le)", "SZ", "SWZ", "748"},
  341. {"Sweden", "Suède (la)", "SE", "SWE", "752"},
  342. {"Switzerland", "Suisse (la)", "CH", "CHE", "756"},
  343. {"Syrian Arab Republic", "République arabe syrienne (la)", "SY", "SYR", "760"},
  344. {"Tajikistan", "Tadjikistan (le)", "TJ", "TJK", "762"},
  345. {"Thailand", "Thaïlande (la)", "TH", "THA", "764"},
  346. {"Togo", "Togo (le)", "TG", "TGO", "768"},
  347. {"Tokelau", "Tokelau (les)", "TK", "TKL", "772"},
  348. {"Tonga", "Tonga (les)", "TO", "TON", "776"},
  349. {"Trinidad and Tobago", "Trinité-et-Tobago (la)", "TT", "TTO", "780"},
  350. {"United Arab Emirates (the)", "Émirats arabes unis (les)", "AE", "ARE", "784"},
  351. {"Tunisia", "Tunisie (la)", "TN", "TUN", "788"},
  352. {"Turkey", "Turquie (la)", "TR", "TUR", "792"},
  353. {"Turkmenistan", "Turkménistan (le)", "TM", "TKM", "795"},
  354. {"Turks and Caicos Islands (the)", "Turks-et-Caïcos (les Îles)", "TC", "TCA", "796"},
  355. {"Tuvalu", "Tuvalu (les)", "TV", "TUV", "798"},
  356. {"Uganda", "Ouganda (l')", "UG", "UGA", "800"},
  357. {"Ukraine", "Ukraine (l')", "UA", "UKR", "804"},
  358. {"Macedonia (the former Yugoslav Republic of)", "Macédoine (l'ex‑République yougoslave de)", "MK", "MKD", "807"},
  359. {"Egypt", "Égypte (l')", "EG", "EGY", "818"},
  360. {"United Kingdom of Great Britain and Northern Ireland (the)", "Royaume-Uni de Grande-Bretagne et d'Irlande du Nord (le)", "GB", "GBR", "826"},
  361. {"Guernsey", "Guernesey", "GG", "GGY", "831"},
  362. {"Jersey", "Jersey", "JE", "JEY", "832"},
  363. {"Isle of Man", "Île de Man", "IM", "IMN", "833"},
  364. {"Tanzania, United Republic of", "Tanzanie, République-Unie de", "TZ", "TZA", "834"},
  365. {"United States of America (the)", "États-Unis d'Amérique (les)", "US", "USA", "840"},
  366. {"Virgin Islands (U.S.)", "Vierges des États-Unis (les Îles)", "VI", "VIR", "850"},
  367. {"Burkina Faso", "Burkina Faso (le)", "BF", "BFA", "854"},
  368. {"Uruguay", "Uruguay (l')", "UY", "URY", "858"},
  369. {"Uzbekistan", "Ouzbékistan (l')", "UZ", "UZB", "860"},
  370. {"Venezuela (Bolivarian Republic of)", "Venezuela (République bolivarienne du)", "VE", "VEN", "862"},
  371. {"Wallis and Futuna", "Wallis-et-Futuna", "WF", "WLF", "876"},
  372. {"Samoa", "Samoa (le)", "WS", "WSM", "882"},
  373. {"Yemen", "Yémen (le)", "YE", "YEM", "887"},
  374. {"Zambia", "Zambie (la)", "ZM", "ZMB", "894"},
  375. }
  376. // ISO4217List is the list of ISO currency codes
  377. var ISO4217List = []string{
  378. "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN",
  379. "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD",
  380. "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK",
  381. "DJF", "DKK", "DOP", "DZD",
  382. "EGP", "ERN", "ETB", "EUR",
  383. "FJD", "FKP",
  384. "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD",
  385. "HKD", "HNL", "HRK", "HTG", "HUF",
  386. "IDR", "ILS", "INR", "IQD", "IRR", "ISK",
  387. "JMD", "JOD", "JPY",
  388. "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT",
  389. "LAK", "LBP", "LKR", "LRD", "LSL", "LYD",
  390. "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN",
  391. "NAD", "NGN", "NIO", "NOK", "NPR", "NZD",
  392. "OMR",
  393. "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG",
  394. "QAR",
  395. "RON", "RSD", "RUB", "RWF",
  396. "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SVC", "SYP", "SZL",
  397. "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS",
  398. "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UZS",
  399. "VEF", "VND", "VUV",
  400. "WST",
  401. "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX",
  402. "YER",
  403. "ZAR", "ZMW", "ZWL",
  404. }
  405. // ISO693Entry stores ISO language codes
  406. type ISO693Entry struct {
  407. Alpha3bCode string
  408. Alpha2Code string
  409. English string
  410. }
  411. //ISO693List based on http://data.okfn.org/data/core/language-codes/r/language-codes-3b2.json
  412. var ISO693List = []ISO693Entry{
  413. {Alpha3bCode: "aar", Alpha2Code: "aa", English: "Afar"},
  414. {Alpha3bCode: "abk", Alpha2Code: "ab", English: "Abkhazian"},
  415. {Alpha3bCode: "afr", Alpha2Code: "af", English: "Afrikaans"},
  416. {Alpha3bCode: "aka", Alpha2Code: "ak", English: "Akan"},
  417. {Alpha3bCode: "alb", Alpha2Code: "sq", English: "Albanian"},
  418. {Alpha3bCode: "amh", Alpha2Code: "am", English: "Amharic"},
  419. {Alpha3bCode: "ara", Alpha2Code: "ar", English: "Arabic"},
  420. {Alpha3bCode: "arg", Alpha2Code: "an", English: "Aragonese"},
  421. {Alpha3bCode: "arm", Alpha2Code: "hy", English: "Armenian"},
  422. {Alpha3bCode: "asm", Alpha2Code: "as", English: "Assamese"},
  423. {Alpha3bCode: "ava", Alpha2Code: "av", English: "Avaric"},
  424. {Alpha3bCode: "ave", Alpha2Code: "ae", English: "Avestan"},
  425. {Alpha3bCode: "aym", Alpha2Code: "ay", English: "Aymara"},
  426. {Alpha3bCode: "aze", Alpha2Code: "az", English: "Azerbaijani"},
  427. {Alpha3bCode: "bak", Alpha2Code: "ba", English: "Bashkir"},
  428. {Alpha3bCode: "bam", Alpha2Code: "bm", English: "Bambara"},
  429. {Alpha3bCode: "baq", Alpha2Code: "eu", English: "Basque"},
  430. {Alpha3bCode: "bel", Alpha2Code: "be", English: "Belarusian"},
  431. {Alpha3bCode: "ben", Alpha2Code: "bn", English: "Bengali"},
  432. {Alpha3bCode: "bih", Alpha2Code: "bh", English: "Bihari languages"},
  433. {Alpha3bCode: "bis", Alpha2Code: "bi", English: "Bislama"},
  434. {Alpha3bCode: "bos", Alpha2Code: "bs", English: "Bosnian"},
  435. {Alpha3bCode: "bre", Alpha2Code: "br", English: "Breton"},
  436. {Alpha3bCode: "bul", Alpha2Code: "bg", English: "Bulgarian"},
  437. {Alpha3bCode: "bur", Alpha2Code: "my", English: "Burmese"},
  438. {Alpha3bCode: "cat", Alpha2Code: "ca", English: "Catalan; Valencian"},
  439. {Alpha3bCode: "cha", Alpha2Code: "ch", English: "Chamorro"},
  440. {Alpha3bCode: "che", Alpha2Code: "ce", English: "Chechen"},
  441. {Alpha3bCode: "chi", Alpha2Code: "zh", English: "Chinese"},
  442. {Alpha3bCode: "chu", Alpha2Code: "cu", English: "Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic"},
  443. {Alpha3bCode: "chv", Alpha2Code: "cv", English: "Chuvash"},
  444. {Alpha3bCode: "cor", Alpha2Code: "kw", English: "Cornish"},
  445. {Alpha3bCode: "cos", Alpha2Code: "co", English: "Corsican"},
  446. {Alpha3bCode: "cre", Alpha2Code: "cr", English: "Cree"},
  447. {Alpha3bCode: "cze", Alpha2Code: "cs", English: "Czech"},
  448. {Alpha3bCode: "dan", Alpha2Code: "da", English: "Danish"},
  449. {Alpha3bCode: "div", Alpha2Code: "dv", English: "Divehi; Dhivehi; Maldivian"},
  450. {Alpha3bCode: "dut", Alpha2Code: "nl", English: "Dutch; Flemish"},
  451. {Alpha3bCode: "dzo", Alpha2Code: "dz", English: "Dzongkha"},
  452. {Alpha3bCode: "eng", Alpha2Code: "en", English: "English"},
  453. {Alpha3bCode: "epo", Alpha2Code: "eo", English: "Esperanto"},
  454. {Alpha3bCode: "est", Alpha2Code: "et", English: "Estonian"},
  455. {Alpha3bCode: "ewe", Alpha2Code: "ee", English: "Ewe"},
  456. {Alpha3bCode: "fao", Alpha2Code: "fo", English: "Faroese"},
  457. {Alpha3bCode: "fij", Alpha2Code: "fj", English: "Fijian"},
  458. {Alpha3bCode: "fin", Alpha2Code: "fi", English: "Finnish"},
  459. {Alpha3bCode: "fre", Alpha2Code: "fr", English: "French"},
  460. {Alpha3bCode: "fry", Alpha2Code: "fy", English: "Western Frisian"},
  461. {Alpha3bCode: "ful", Alpha2Code: "ff", English: "Fulah"},
  462. {Alpha3bCode: "geo", Alpha2Code: "ka", English: "Georgian"},
  463. {Alpha3bCode: "ger", Alpha2Code: "de", English: "German"},
  464. {Alpha3bCode: "gla", Alpha2Code: "gd", English: "Gaelic; Scottish Gaelic"},
  465. {Alpha3bCode: "gle", Alpha2Code: "ga", English: "Irish"},
  466. {Alpha3bCode: "glg", Alpha2Code: "gl", English: "Galician"},
  467. {Alpha3bCode: "glv", Alpha2Code: "gv", English: "Manx"},
  468. {Alpha3bCode: "gre", Alpha2Code: "el", English: "Greek, Modern (1453-)"},
  469. {Alpha3bCode: "grn", Alpha2Code: "gn", English: "Guarani"},
  470. {Alpha3bCode: "guj", Alpha2Code: "gu", English: "Gujarati"},
  471. {Alpha3bCode: "hat", Alpha2Code: "ht", English: "Haitian; Haitian Creole"},
  472. {Alpha3bCode: "hau", Alpha2Code: "ha", English: "Hausa"},
  473. {Alpha3bCode: "heb", Alpha2Code: "he", English: "Hebrew"},
  474. {Alpha3bCode: "her", Alpha2Code: "hz", English: "Herero"},
  475. {Alpha3bCode: "hin", Alpha2Code: "hi", English: "Hindi"},
  476. {Alpha3bCode: "hmo", Alpha2Code: "ho", English: "Hiri Motu"},
  477. {Alpha3bCode: "hrv", Alpha2Code: "hr", English: "Croatian"},
  478. {Alpha3bCode: "hun", Alpha2Code: "hu", English: "Hungarian"},
  479. {Alpha3bCode: "ibo", Alpha2Code: "ig", English: "Igbo"},
  480. {Alpha3bCode: "ice", Alpha2Code: "is", English: "Icelandic"},
  481. {Alpha3bCode: "ido", Alpha2Code: "io", English: "Ido"},
  482. {Alpha3bCode: "iii", Alpha2Code: "ii", English: "Sichuan Yi; Nuosu"},
  483. {Alpha3bCode: "iku", Alpha2Code: "iu", English: "Inuktitut"},
  484. {Alpha3bCode: "ile", Alpha2Code: "ie", English: "Interlingue; Occidental"},
  485. {Alpha3bCode: "ina", Alpha2Code: "ia", English: "Interlingua (International Auxiliary Language Association)"},
  486. {Alpha3bCode: "ind", Alpha2Code: "id", English: "Indonesian"},
  487. {Alpha3bCode: "ipk", Alpha2Code: "ik", English: "Inupiaq"},
  488. {Alpha3bCode: "ita", Alpha2Code: "it", English: "Italian"},
  489. {Alpha3bCode: "jav", Alpha2Code: "jv", English: "Javanese"},
  490. {Alpha3bCode: "jpn", Alpha2Code: "ja", English: "Japanese"},
  491. {Alpha3bCode: "kal", Alpha2Code: "kl", English: "Kalaallisut; Greenlandic"},
  492. {Alpha3bCode: "kan", Alpha2Code: "kn", English: "Kannada"},
  493. {Alpha3bCode: "kas", Alpha2Code: "ks", English: "Kashmiri"},
  494. {Alpha3bCode: "kau", Alpha2Code: "kr", English: "Kanuri"},
  495. {Alpha3bCode: "kaz", Alpha2Code: "kk", English: "Kazakh"},
  496. {Alpha3bCode: "khm", Alpha2Code: "km", English: "Central Khmer"},
  497. {Alpha3bCode: "kik", Alpha2Code: "ki", English: "Kikuyu; Gikuyu"},
  498. {Alpha3bCode: "kin", Alpha2Code: "rw", English: "Kinyarwanda"},
  499. {Alpha3bCode: "kir", Alpha2Code: "ky", English: "Kirghiz; Kyrgyz"},
  500. {Alpha3bCode: "kom", Alpha2Code: "kv", English: "Komi"},
  501. {Alpha3bCode: "kon", Alpha2Code: "kg", English: "Kongo"},
  502. {Alpha3bCode: "kor", Alpha2Code: "ko", English: "Korean"},
  503. {Alpha3bCode: "kua", Alpha2Code: "kj", English: "Kuanyama; Kwanyama"},
  504. {Alpha3bCode: "kur", Alpha2Code: "ku", English: "Kurdish"},
  505. {Alpha3bCode: "lao", Alpha2Code: "lo", English: "Lao"},
  506. {Alpha3bCode: "lat", Alpha2Code: "la", English: "Latin"},
  507. {Alpha3bCode: "lav", Alpha2Code: "lv", English: "Latvian"},
  508. {Alpha3bCode: "lim", Alpha2Code: "li", English: "Limburgan; Limburger; Limburgish"},
  509. {Alpha3bCode: "lin", Alpha2Code: "ln", English: "Lingala"},
  510. {Alpha3bCode: "lit", Alpha2Code: "lt", English: "Lithuanian"},
  511. {Alpha3bCode: "ltz", Alpha2Code: "lb", English: "Luxembourgish; Letzeburgesch"},
  512. {Alpha3bCode: "lub", Alpha2Code: "lu", English: "Luba-Katanga"},
  513. {Alpha3bCode: "lug", Alpha2Code: "lg", English: "Ganda"},
  514. {Alpha3bCode: "mac", Alpha2Code: "mk", English: "Macedonian"},
  515. {Alpha3bCode: "mah", Alpha2Code: "mh", English: "Marshallese"},
  516. {Alpha3bCode: "mal", Alpha2Code: "ml", English: "Malayalam"},
  517. {Alpha3bCode: "mao", Alpha2Code: "mi", English: "Maori"},
  518. {Alpha3bCode: "mar", Alpha2Code: "mr", English: "Marathi"},
  519. {Alpha3bCode: "may", Alpha2Code: "ms", English: "Malay"},
  520. {Alpha3bCode: "mlg", Alpha2Code: "mg", English: "Malagasy"},
  521. {Alpha3bCode: "mlt", Alpha2Code: "mt", English: "Maltese"},
  522. {Alpha3bCode: "mon", Alpha2Code: "mn", English: "Mongolian"},
  523. {Alpha3bCode: "nau", Alpha2Code: "na", English: "Nauru"},
  524. {Alpha3bCode: "nav", Alpha2Code: "nv", English: "Navajo; Navaho"},
  525. {Alpha3bCode: "nbl", Alpha2Code: "nr", English: "Ndebele, South; South Ndebele"},
  526. {Alpha3bCode: "nde", Alpha2Code: "nd", English: "Ndebele, North; North Ndebele"},
  527. {Alpha3bCode: "ndo", Alpha2Code: "ng", English: "Ndonga"},
  528. {Alpha3bCode: "nep", Alpha2Code: "ne", English: "Nepali"},
  529. {Alpha3bCode: "nno", Alpha2Code: "nn", English: "Norwegian Nynorsk; Nynorsk, Norwegian"},
  530. {Alpha3bCode: "nob", Alpha2Code: "nb", English: "Bokmål, Norwegian; Norwegian Bokmål"},
  531. {Alpha3bCode: "nor", Alpha2Code: "no", English: "Norwegian"},
  532. {Alpha3bCode: "nya", Alpha2Code: "ny", English: "Chichewa; Chewa; Nyanja"},
  533. {Alpha3bCode: "oci", Alpha2Code: "oc", English: "Occitan (post 1500); Provençal"},
  534. {Alpha3bCode: "oji", Alpha2Code: "oj", English: "Ojibwa"},
  535. {Alpha3bCode: "ori", Alpha2Code: "or", English: "Oriya"},
  536. {Alpha3bCode: "orm", Alpha2Code: "om", English: "Oromo"},
  537. {Alpha3bCode: "oss", Alpha2Code: "os", English: "Ossetian; Ossetic"},
  538. {Alpha3bCode: "pan", Alpha2Code: "pa", English: "Panjabi; Punjabi"},
  539. {Alpha3bCode: "per", Alpha2Code: "fa", English: "Persian"},
  540. {Alpha3bCode: "pli", Alpha2Code: "pi", English: "Pali"},
  541. {Alpha3bCode: "pol", Alpha2Code: "pl", English: "Polish"},
  542. {Alpha3bCode: "por", Alpha2Code: "pt", English: "Portuguese"},
  543. {Alpha3bCode: "pus", Alpha2Code: "ps", English: "Pushto; Pashto"},
  544. {Alpha3bCode: "que", Alpha2Code: "qu", English: "Quechua"},
  545. {Alpha3bCode: "roh", Alpha2Code: "rm", English: "Romansh"},
  546. {Alpha3bCode: "rum", Alpha2Code: "ro", English: "Romanian; Moldavian; Moldovan"},
  547. {Alpha3bCode: "run", Alpha2Code: "rn", English: "Rundi"},
  548. {Alpha3bCode: "rus", Alpha2Code: "ru", English: "Russian"},
  549. {Alpha3bCode: "sag", Alpha2Code: "sg", English: "Sango"},
  550. {Alpha3bCode: "san", Alpha2Code: "sa", English: "Sanskrit"},
  551. {Alpha3bCode: "sin", Alpha2Code: "si", English: "Sinhala; Sinhalese"},
  552. {Alpha3bCode: "slo", Alpha2Code: "sk", English: "Slovak"},
  553. {Alpha3bCode: "slv", Alpha2Code: "sl", English: "Slovenian"},
  554. {Alpha3bCode: "sme", Alpha2Code: "se", English: "Northern Sami"},
  555. {Alpha3bCode: "smo", Alpha2Code: "sm", English: "Samoan"},
  556. {Alpha3bCode: "sna", Alpha2Code: "sn", English: "Shona"},
  557. {Alpha3bCode: "snd", Alpha2Code: "sd", English: "Sindhi"},
  558. {Alpha3bCode: "som", Alpha2Code: "so", English: "Somali"},
  559. {Alpha3bCode: "sot", Alpha2Code: "st", English: "Sotho, Southern"},
  560. {Alpha3bCode: "spa", Alpha2Code: "es", English: "Spanish; Castilian"},
  561. {Alpha3bCode: "srd", Alpha2Code: "sc", English: "Sardinian"},
  562. {Alpha3bCode: "srp", Alpha2Code: "sr", English: "Serbian"},
  563. {Alpha3bCode: "ssw", Alpha2Code: "ss", English: "Swati"},
  564. {Alpha3bCode: "sun", Alpha2Code: "su", English: "Sundanese"},
  565. {Alpha3bCode: "swa", Alpha2Code: "sw", English: "Swahili"},
  566. {Alpha3bCode: "swe", Alpha2Code: "sv", English: "Swedish"},
  567. {Alpha3bCode: "tah", Alpha2Code: "ty", English: "Tahitian"},
  568. {Alpha3bCode: "tam", Alpha2Code: "ta", English: "Tamil"},
  569. {Alpha3bCode: "tat", Alpha2Code: "tt", English: "Tatar"},
  570. {Alpha3bCode: "tel", Alpha2Code: "te", English: "Telugu"},
  571. {Alpha3bCode: "tgk", Alpha2Code: "tg", English: "Tajik"},
  572. {Alpha3bCode: "tgl", Alpha2Code: "tl", English: "Tagalog"},
  573. {Alpha3bCode: "tha", Alpha2Code: "th", English: "Thai"},
  574. {Alpha3bCode: "tib", Alpha2Code: "bo", English: "Tibetan"},
  575. {Alpha3bCode: "tir", Alpha2Code: "ti", English: "Tigrinya"},
  576. {Alpha3bCode: "ton", Alpha2Code: "to", English: "Tonga (Tonga Islands)"},
  577. {Alpha3bCode: "tsn", Alpha2Code: "tn", English: "Tswana"},
  578. {Alpha3bCode: "tso", Alpha2Code: "ts", English: "Tsonga"},
  579. {Alpha3bCode: "tuk", Alpha2Code: "tk", English: "Turkmen"},
  580. {Alpha3bCode: "tur", Alpha2Code: "tr", English: "Turkish"},
  581. {Alpha3bCode: "twi", Alpha2Code: "tw", English: "Twi"},
  582. {Alpha3bCode: "uig", Alpha2Code: "ug", English: "Uighur; Uyghur"},
  583. {Alpha3bCode: "ukr", Alpha2Code: "uk", English: "Ukrainian"},
  584. {Alpha3bCode: "urd", Alpha2Code: "ur", English: "Urdu"},
  585. {Alpha3bCode: "uzb", Alpha2Code: "uz", English: "Uzbek"},
  586. {Alpha3bCode: "ven", Alpha2Code: "ve", English: "Venda"},
  587. {Alpha3bCode: "vie", Alpha2Code: "vi", English: "Vietnamese"},
  588. {Alpha3bCode: "vol", Alpha2Code: "vo", English: "Volapük"},
  589. {Alpha3bCode: "wel", Alpha2Code: "cy", English: "Welsh"},
  590. {Alpha3bCode: "wln", Alpha2Code: "wa", English: "Walloon"},
  591. {Alpha3bCode: "wol", Alpha2Code: "wo", English: "Wolof"},
  592. {Alpha3bCode: "xho", Alpha2Code: "xh", English: "Xhosa"},
  593. {Alpha3bCode: "yid", Alpha2Code: "yi", English: "Yiddish"},
  594. {Alpha3bCode: "yor", Alpha2Code: "yo", English: "Yoruba"},
  595. {Alpha3bCode: "zha", Alpha2Code: "za", English: "Zhuang; Chuang"},
  596. {Alpha3bCode: "zul", Alpha2Code: "zu", English: "Zulu"},
  597. }