const ISO_639_1 = [
  { code: "aa", label: "Afar" },
  { code: "ab", label: "Abkhazian" },
  { code: "af", label: "Afrikaans" },
  { code: "ak", label: "Akan" },
  { code: "am", label: "Amharic" },
  { code: "an", label: "Aragonese" },
  { code: "ar", label: "Arabic" },
  { code: "as", label: "Assamese" },
  { code: "av", label: "Avaric" },
  { code: "ay", label: "Aymara" },
  { code: "az", label: "Azerbaijani" },
  { code: "ba", label: "Bashkir" },
  { code: "be", label: "Belarusian" },
  { code: "bg", label: "Bulgarian" },
  { code: "bh", label: "Bihari" },
  { code: "bi", label: "Bislama" },
  { code: "bm", label: "Bambara" },
  { code: "bn", label: "Bengali" },
  { code: "bo", label: "Tibetan" },
  { code: "br", label: "Breton" },
  { code: "bs", label: "Bosnian" },
  { code: "ca", label: "Catalan" },
  { code: "ce", label: "Chechen" },
  { code: "ch", label: "Chamorro" },
  { code: "co", label: "Corsican" },
  { code: "cr", label: "Cree" },
  { code: "cs", label: "Czech" },
  { code: "cu", label: "Church Slavic" },
  { code: "cv", label: "Chuvash" },
  { code: "cy", label: "Welsh" },
  { code: "da", label: "Danish" },
  { code: "de", label: "German" },
  { code: "dv", label: "Divehi" },
  { code: "dz", label: "Dzongkha" },
  { code: "ee", label: "Ewe" },
  { code: "el", label: "Greek" },
  { code: "en", label: "English" },
  { code: "eo", label: "Esperanto" },
  { code: "es", label: "Spanish" },
  { code: "et", label: "Estonian" },
  { code: "eu", label: "Basque" },
  { code: "fa", label: "Persian" },
  { code: "ff", label: "Fulah" },
  { code: "fi", label: "Finnish" },
  { code: "fj", label: "Fijian" },
  { code: "fo", label: "Faroese" },
  { code: "fr", label: "French" },
  { code: "fy", label: "Western Frisian" },
  { code: "ga", label: "Irish" },
  { code: "gd", label: "Scottish Gaelic" },
  { code: "gl", label: "Galician" },
  { code: "gn", label: "Guarani" },
  { code: "gu", label: "Gujarati" },
  { code: "gv", label: "Manx" },
  { code: "ha", label: "Hausa" },
  { code: "he", label: "Hebrew" },
  { code: "hi", label: "Hindi" },
  { code: "ho", label: "Hiri Motu" },
  { code: "hr", label: "Croatian" },
  { code: "ht", label: "Haitian Creole" },
  { code: "hu", label: "Hungarian" },
  { code: "hy", label: "Armenian" },
  { code: "hz", label: "Herero" },
  { code: "ia", label: "Interlingua" },
  { code: "id", label: "Indonesian" },
  { code: "ie", label: "Interlingue" },
  { code: "ig", label: "Igbo" },
  { code: "ii", label: "Sichuan Yi" },
  { code: "ik", label: "Inupiaq" },
  { code: "io", label: "Ido" },
  { code: "is", label: "Icelandic" },
  { code: "it", label: "Italian" },
  { code: "iu", label: "Inuktitut" },
  { code: "ja", label: "Japanese" },
  { code: "jv", label: "Javanese" },
  { code: "ka", label: "Georgian" },
  { code: "kg", label: "Kongo" },
  { code: "ki", label: "Kikuyu" },
  { code: "kj", label: "Kuanyama" },
  { code: "kk", label: "Kazakh" },
  { code: "kl", label: "Kalaallisut" },
  { code: "km", label: "Khmer" },
  { code: "kn", label: "Kannada" },
  { code: "ko", label: "Korean" },
  { code: "kr", label: "Kanuri" },
  { code: "ks", label: "Kashmiri" },
  { code: "ku", label: "Kurdish" },
  { code: "kv", label: "Komi" },
  { code: "kw", label: "Cornish" },
  { code: "ky", label: "Kyrgyz" },
  { code: "la", label: "Latin" },
  { code: "lb", label: "Luxembourgish" },
  { code: "lg", label: "Ganda" },
  { code: "li", label: "Limburgish" },
  { code: "ln", label: "Lingala" },
  { code: "lo", label: "Lao" },
  { code: "lt", label: "Lithuanian" },
  { code: "lu", label: "Luba-Katanga" },
  { code: "lv", label: "Latvian" },
  { code: "mg", label: "Malagasy" },
  { code: "mh", label: "Marshallese" },
  { code: "mi", label: "Maori" },
  { code: "mk", label: "Macedonian" },
  { code: "ml", label: "Malayalam" },
  { code: "mn", label: "Mongolian" },
  { code: "mr", label: "Marathi" },
  { code: "ms", label: "Malay" },
  { code: "mt", label: "Maltese" },
  { code: "my", label: "Burmese" },
  { code: "na", label: "Nauru" },
  { code: "nb", label: "Norwegian Bokmal" },
  { code: "nd", label: "North Ndebele" },
  { code: "ne", label: "Nepali" },
  { code: "ng", label: "Ndonga" },
  { code: "nl", label: "Dutch" },
  { code: "nn", label: "Norwegian Nynorsk" },
  { code: "no", label: "Norwegian" },
  { code: "nr", label: "South Ndebele" },
  { code: "nv", label: "Navajo" },
  { code: "ny", label: "Chichewa" },
  { code: "oc", label: "Occitan" },
  { code: "oj", label: "Ojibwa" },
  { code: "om", label: "Oromo" },
  { code: "or", label: "Oriya" },
  { code: "os", label: "Ossetian" },
  { code: "pa", label: "Panjabi" },
  { code: "pi", label: "Pali" },
  { code: "pl", label: "Polish" },
  { code: "ps", label: "Pashto" },
  { code: "pt", label: "Portuguese" },
  { code: "qu", label: "Quechua" },
  { code: "rm", label: "Romansh" },
  { code: "rn", label: "Rundi" },
  { code: "ro", label: "Romanian" },
  { code: "ru", label: "Russian" },
  { code: "rw", label: "Kinyarwanda" },
  { code: "sa", label: "Sanskrit" },
  { code: "sc", label: "Sardinian" },
  { code: "sd", label: "Sindhi" },
  { code: "se", label: "Northern Sami" },
  { code: "sg", label: "Sango" },
  { code: "si", label: "Sinhala" },
  { code: "sk", label: "Slovak" },
  { code: "sl", label: "Slovenian" },
  { code: "sm", label: "Samoan" },
  { code: "sn", label: "Shona" },
  { code: "so", label: "Somali" },
  { code: "sq", label: "Albanian" },
  { code: "sr", label: "Serbian" },
  { code: "ss", label: "Swati" },
  { code: "st", label: "Southern Sotho" },
  { code: "su", label: "Sundanese" },
  { code: "sv", label: "Swedish" },
  { code: "sw", label: "Swahili" },
  { code: "ta", label: "Tamil" },
  { code: "te", label: "Telugu" },
  { code: "tg", label: "Tajik" },
  { code: "th", label: "Thai" },
  { code: "ti", label: "Tigrinya" },
  { code: "tk", label: "Turkmen" },
  { code: "tl", label: "Tagalog" },
  { code: "tn", label: "Tswana" },
  { code: "to", label: "Tonga" },
  { code: "tr", label: "Turkish" },
  { code: "ts", label: "Tsonga" },
  { code: "tt", label: "Tatar" },
  { code: "tw", label: "Twi" },
  { code: "ty", label: "Tahitian" },
  { code: "ug", label: "Uyghur" },
  { code: "uk", label: "Ukrainian" },
  { code: "ur", label: "Urdu" },
  { code: "uz", label: "Uzbek" },
  { code: "ve", label: "Venda" },
  { code: "vi", label: "Vietnamese" },
  { code: "vo", label: "Volapuk" },
  { code: "wa", label: "Walloon" },
  { code: "wo", label: "Wolof" },
  { code: "xh", label: "Xhosa" },
  { code: "yi", label: "Yiddish" },
  { code: "yo", label: "Yoruba" },
  { code: "za", label: "Zhuang" },
  { code: "zh", label: "Chinese" },
  { code: "zu", label: "Zulu" }
];
const codeSet = new Set(ISO_639_1.map((entry) => entry.code));
function isValidIso639(code) {
  return codeSet.has(code.toLowerCase().trim());
}
function getIso639Label(code) {
  const normalized = code.toLowerCase().trim();
  return ISO_639_1.find((entry) => entry.code === normalized)?.label;
}
export {
  ISO_639_1,
  getIso639Label,
  isValidIso639
};
//# sourceMappingURL=iso639.js.map
