diff --git a/countries.go b/countries.go index 649ac5b..34bcbe1 100644 --- a/countries.go +++ b/countries.go @@ -4894,513 +4894,412 @@ func (c CountryCode) Region() RegionCode { //nolint:gocyclo return RegionUnknown } -// Language - return language code of country -func (c CountryCode) Language() LanguageCode { //nolint:gocyclo +// Languages - return language codes for a country +func (c CountryCode) Languages() []LanguageCode { //nolint:gocyclo switch c { case AUS: - return LanguageEN + return []LanguageCode{LanguageEN} case AUT: - return LanguageDE + return []LanguageCode{LanguageDE} case AZE: - return LanguageAZ + return []LanguageCode{LanguageAZ} case ALB: - return LanguageSQ + return []LanguageCode{LanguageSQ} case DZA: - return LanguageAR + return []LanguageCode{LanguageAR} case ASM: - return LanguageSM + return []LanguageCode{LanguageEN, LanguageSM} case AIA: - return LanguageEN + return []LanguageCode{LanguageEN} case AGO: - return LanguagePT + return []LanguageCode{LanguagePT} case AND: - return LanguageCA + return []LanguageCode{LanguageCA} case ATA: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageFR} case ATG: - return LanguageEN - case ARE: - return LanguageAR + return []LanguageCode{LanguageEN} case ARG: - return LanguageES + return []LanguageCode{LanguageES} case ARM: - return LanguageHY + return []LanguageCode{LanguageHY} case ABW: - return LanguageNL + return []LanguageCode{LanguageNL, LanguagePA} case AFG: - return LanguageFA + return []LanguageCode{LanguagePS, LanguageUZ, LanguageTK} case BHS: - return LanguageEN + return []LanguageCode{LanguageEN} case BGD: - return LanguageBN + return []LanguageCode{LanguageBN} case BRB: - return LanguageEN + return []LanguageCode{LanguageEN} case BHR: - return LanguageAR + return []LanguageCode{LanguageAR} case BLR: - return LanguageBE + return []LanguageCode{LanguageBE, LanguageRU} case BLZ: - return LanguageEN + return []LanguageCode{LanguageEN} case BEL: - return LanguageNL + return []LanguageCode{LanguageNL, LanguageFR, LanguageDE} case BEN: - return LanguageFR + return []LanguageCode{LanguageFR} case BMU: - return LanguageEN + return []LanguageCode{LanguageEN} case BGR: - return LanguageBG + return []LanguageCode{LanguageBG} case BOL: - return LanguageES + return []LanguageCode{LanguageES, LanguageAY, LanguageQU} case BIH: - return LanguageBS + return []LanguageCode{LanguageBS, LanguageHR, LanguageSR} case BWA: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageTN} case BRA: - return LanguagePT - case IOT: - return LanguageEN + return []LanguageCode{LanguagePT} case BRN: - return LanguageMS + return []LanguageCode{LanguageMS} case BFA: - return LanguageFR + return []LanguageCode{LanguageFR} case BDI: - return LanguageFR - case BTN: - return LanguageDZ - case VUT: - return LanguageBI - case VAT: - return LanguageIT - case GBR: - return LanguageEN - case HUN: - return LanguageHU - case VEN: - return LanguageES - case VGB: - return LanguageEN - case VIR: - return LanguageEN - case TLS: - return LanguagePT - case VNM: - return LanguageVI + return []LanguageCode{LanguageFR, LanguageRN} + case CPV: + return []LanguageCode{LanguagePT} + case KHM: + return []LanguageCode{LanguageKM} + case CMR: + return []LanguageCode{LanguageEN, LanguageFR} + case CAN: + return []LanguageCode{LanguageEN, LanguageFR} + case CAF: + return []LanguageCode{LanguageFR, LanguageSG} + case TCD: + return []LanguageCode{LanguageFR, LanguageAR} + case CHL: + return []LanguageCode{LanguageES} + case CHN: + return []LanguageCode{LanguageZH} + case COL: + return []LanguageCode{LanguageES} + case COM: + return []LanguageCode{LanguageAR, LanguageFR, LanguageCO} + case COG: + return []LanguageCode{LanguageFR} + case CRI: + return []LanguageCode{LanguageES} + case HRV: + return []LanguageCode{LanguageHR} + case CUB: + return []LanguageCode{LanguageES} + case CYP: + return []LanguageCode{LanguageEL, LanguageTR} + case CZE: + return []LanguageCode{LanguageCS} + case DNK: + return []LanguageCode{LanguageDA} + case DJI: + return []LanguageCode{LanguageFR, LanguageAR} + case DMA: + return []LanguageCode{LanguageEN} + case DOM: + return []LanguageCode{LanguageES} + case ECU: + return []LanguageCode{LanguageES} + case EGY: + return []LanguageCode{LanguageAR} + case SLV: + return []LanguageCode{LanguageES} + case GNQ: + return []LanguageCode{LanguageES, LanguageFR, LanguagePT} + case ERI: + return []LanguageCode{LanguageTI, LanguageAR, LanguageEN} + case EST: + return []LanguageCode{LanguageET} + case SWZ: + return []LanguageCode{LanguageEN, LanguageSS} + case ETH: + return []LanguageCode{LanguageAM} + case FJI: + return []LanguageCode{LanguageEN, LanguageFJ, LanguageHI} + case FIN: + return []LanguageCode{LanguageFI, LanguageSV} + case FRA: + return []LanguageCode{LanguageFR} case GAB: - return LanguageFR - case HTI: - return LanguageHT - case GUY: - return LanguageEN + return []LanguageCode{LanguageFR} case GMB: - return LanguageEN + return []LanguageCode{LanguageEN} + case GEO: + return []LanguageCode{LanguageKA} + case DEU: + return []LanguageCode{LanguageDE} case GHA: - return LanguageEN - case GLP: - return LanguageFR + return []LanguageCode{LanguageEN} + case GRC: + return []LanguageCode{LanguageEL} + case GRL: + return []LanguageCode{LanguageKL} + case GRD: + return []LanguageCode{LanguageEN} case GTM: - return LanguageES + return []LanguageCode{LanguageES} case GIN: - return LanguageFR + return []LanguageCode{LanguageFR} case GNB: - return LanguagePT - case DEU: - return LanguageDE - case GIB: - return LanguageEN + return []LanguageCode{LanguagePT} + case GUY: + return []LanguageCode{LanguageEN} + case HTI: + return []LanguageCode{LanguageFR, LanguageHT} case HND: - return LanguageES - case HKG: - return LanguageZH - case GRD: - return LanguageEN - case GRL: - return LanguageKL - case GRC: - return LanguageEL - case GEO: - return LanguageKA - case GUM: - return LanguageEN - case DNK: - return LanguageDA - case COD: - return LanguageFR - case DJI: - return LanguageFR - case DMA: - return LanguageEN - case DOM: - return LanguageES - case EGY: - return LanguageAR - case ZMB: - return LanguageEN - case ESH: - return LanguageAR - case ZWE: - return LanguageEN - case ISR: - return LanguageHE + return []LanguageCode{LanguageES} + case HUN: + return []LanguageCode{LanguageHU} + case ISL: + return []LanguageCode{LanguageIS} case IND: - return LanguageHI + return []LanguageCode{LanguageHI, LanguageEN} case IDN: - return LanguageID - case JOR: - return LanguageAR - case IRQ: - return LanguageAR + return []LanguageCode{LanguageID} case IRN: - return LanguageFA + return []LanguageCode{LanguageFA} + case IRQ: + return []LanguageCode{LanguageAR, LanguageKU} case IRL: - return LanguageEN - case ISL: - return LanguageIS - case ESP: - return LanguageES + return []LanguageCode{LanguageEN, LanguageGA} + case ISR: + return []LanguageCode{LanguageHE, LanguageAR} case ITA: - return LanguageIT - case YEM: - return LanguageAR + return []LanguageCode{LanguageIT} + case CIV: + return []LanguageCode{LanguageFR} + case JAM: + return []LanguageCode{LanguageEN} + case JPN: + return []LanguageCode{LanguageJA} + case JOR: + return []LanguageCode{LanguageAR} case KAZ: - return LanguageKK - case CYM: - return LanguageEN - case KHM: - return LanguageKM - case CMR: - return LanguageFR - case CAN: - return LanguageEN - case QAT: - return LanguageAR + return []LanguageCode{LanguageKK, LanguageRU} case KEN: - return LanguageEN - case CYP: - return LanguageEL + return []LanguageCode{LanguageEN, LanguageSW} case KIR: - return LanguageEN - case CHN: - return LanguageZH - case CCK: - return LanguageEN - case COL: - return LanguageES - case COM: - return LanguageFR - case COG: - return LanguageFR + return []LanguageCode{LanguageEN} case PRK: - return LanguageKO + return []LanguageCode{LanguageKO} case KOR: - return LanguageKO - case CRI: - return LanguageES - case CIV: - return LanguageFR - case CUB: - return LanguageES + return []LanguageCode{LanguageKO} case KWT: - return LanguageAR + return []LanguageCode{LanguageAR} case KGZ: - return LanguageKY + return []LanguageCode{LanguageKY, LanguageRU} case LAO: - return LanguageLO + return []LanguageCode{LanguageLO} case LVA: - return LanguageLV + return []LanguageCode{LanguageLV} + case LBN: + return []LanguageCode{LanguageAR} case LSO: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageST} case LBR: - return LanguageEN - case LBN: - return LanguageAR + return []LanguageCode{LanguageEN} case LBY: - return LanguageAR - case LTU: - return LanguageLT + return []LanguageCode{LanguageAR} case LIE: - return LanguageDE + return []LanguageCode{LanguageDE} + case LTU: + return []LanguageCode{LanguageLT} case LUX: - return LanguageLU - case MUS: - return LanguageEN - case MRT: - return LanguageAR + return []LanguageCode{LanguageLU, LanguageFR, LanguageDE} case MDG: - return LanguageFR - case MYT: - return LanguageFR - case MAC: - return LanguageZH - case MKD: - return LanguageMK + return []LanguageCode{LanguageFR, LanguageMG} case MWI: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageNY} case MYS: - return LanguageMS - case MLI: - return LanguageFR + return []LanguageCode{LanguageMS} case MDV: - return LanguageDV + return []LanguageCode{LanguageDV} + case MLI: + return []LanguageCode{LanguageFR} case MLT: - return LanguageMT - case MNP: - return LanguageEN - case MAR: - return LanguageAR - case MTQ: - return LanguageFR + return []LanguageCode{LanguageMT, LanguageEN} case MHL: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageMH} + case MRT: + return []LanguageCode{LanguageAR} + case MUS: + return []LanguageCode{LanguageEN} case MEX: - return LanguageES + return []LanguageCode{LanguageES} case FSM: - return LanguageEN - case MOZ: - return LanguagePT + return []LanguageCode{LanguageEN} case MDA: - return LanguageRO + return []LanguageCode{LanguageRO} case MCO: - return LanguageFR + return []LanguageCode{LanguageFR} case MNG: - return LanguageMN + return []LanguageCode{LanguageMN} + case MNE: + return []LanguageCode{LanguageSR} case MSR: - return LanguageEN + return []LanguageCode{LanguageEN} + case MAR: + return []LanguageCode{LanguageAR} + case MOZ: + return []LanguageCode{LanguagePT} case MMR: - return LanguageMY + return []LanguageCode{LanguageMY} case NAM: - return LanguageEN + return []LanguageCode{LanguageEN} case NRU: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageNA} case NPL: - return LanguageNE - case NER: - return LanguageFR - case NGA: - return LanguageEN + return []LanguageCode{LanguageNE} case NLD: - return LanguageNL + return []LanguageCode{LanguageNL} + case NZL: + return []LanguageCode{LanguageEN, LanguageMI} case NIC: - return LanguageES + return []LanguageCode{LanguageES} + case NER: + return []LanguageCode{LanguageFR} + case NGA: + return []LanguageCode{LanguageEN} case NIU: - return LanguageEN - case NZL: - return LanguageEN - case NCL: - return LanguageFR + return []LanguageCode{LanguageEN} + case MKD: + return []LanguageCode{LanguageMK} case NOR: - return LanguageNO + return []LanguageCode{LanguageNO} case OMN: - return LanguageAR - case BVT: - return LanguageNO - case IMN: - return LanguageEN - case NFK: - return LanguageEN - case PCN: - return LanguageEN - case CXR: - return LanguageEN - case SHN: - return LanguageEN - case WLF: - return LanguageFR - case HMD: - return LanguageEN - case CPV: - return LanguagePT - case COK: - return LanguageEN - case WSM: - return LanguageSM - case SJM: - return LanguageNO - case TCA: - return LanguageEN - case UMI: - return LanguageEN + return []LanguageCode{LanguageAR} case PAK: - return LanguageUR + return []LanguageCode{LanguageEN, LanguageUR} case PLW: - return LanguageEN - case PSE: - return LanguageAR + return []LanguageCode{LanguageEN} case PAN: - return LanguageES + return []LanguageCode{LanguageES} case PNG: - return LanguageEN + return []LanguageCode{LanguageEN, LanguageHO} case PRY: - return LanguageES + return []LanguageCode{LanguageES, LanguageGN} case PER: - return LanguageES + return []LanguageCode{LanguageES} + case PHL: + return []LanguageCode{LanguageEN, LanguageTL} case POL: - return LanguagePL + return []LanguageCode{LanguagePL} case PRT: - return LanguagePT + return []LanguageCode{LanguagePT} case PRI: - return LanguageES - case REU: - return LanguageFR + return []LanguageCode{LanguageES, LanguageEN} + case QAT: + return []LanguageCode{LanguageAR} + case ROU: + return []LanguageCode{LanguageRO} case RUS: - return LanguageRU + return []LanguageCode{LanguageRU} case RWA: - return LanguageRW - case ROU: - return LanguageRO - case SLV: - return LanguageES + return []LanguageCode{LanguageRW, LanguageFR, LanguageEN} + case KNA: + return []LanguageCode{LanguageEN} + case LCA: + return []LanguageCode{LanguageEN} + case VCT: + return []LanguageCode{LanguageEN} case SMR: - return LanguageIT - case STP: - return LanguagePT + return []LanguageCode{LanguageIT} case SAU: - return LanguageAR - case SWZ: - return LanguageEN - case SYC: - return LanguageFR + return []LanguageCode{LanguageAR} case SEN: - return LanguageFR - case SPM: - return LanguageFR - case VCT: - return LanguageEN - case KNA: - return LanguageEN - case LCA: - return LanguageEN + return []LanguageCode{LanguageFR} + case SRB: + return []LanguageCode{LanguageSR} + case SYC: + return []LanguageCode{LanguageFR, LanguageEN, LanguageCR} + case SLE: + return []LanguageCode{LanguageEN} case SGP: - return LanguageEN - case SYR: - return LanguageAR + return []LanguageCode{LanguageEN, LanguageMS, LanguageTA, LanguageZH} case SVK: - return LanguageSK + return []LanguageCode{LanguageSK} case SVN: - return LanguageSL - case USA: - return LanguageEN + return []LanguageCode{LanguageSL} case SLB: - return LanguageEN + return []LanguageCode{LanguageEN} case SOM: - return LanguageSO + return []LanguageCode{LanguageSO, LanguageAR} + case ZAF: + return []LanguageCode{LanguageAF, LanguageEN, LanguageNR, LanguageST, LanguageTN, LanguageTS, LanguageVE, LanguageXH, LanguageZU} + case SSD: + return []LanguageCode{LanguageEN} + case ESP: + return []LanguageCode{LanguageES} + case LKA: + return []LanguageCode{LanguageSI, LanguageTA} case SDN: - return LanguageAR + return []LanguageCode{LanguageAR, LanguageEN} case SUR: - return LanguageNL - case SLE: - return LanguageEN - case TJK: - return LanguageTG + return []LanguageCode{LanguageNL} + case SWE: + return []LanguageCode{LanguageSV} + case CHE: + return []LanguageCode{LanguageDE, LanguageFR, LanguageIT, LanguageRM} + case SYR: + return []LanguageCode{LanguageAR} case TWN: - return LanguageZH - case THA: - return LanguageTH + return []LanguageCode{LanguageZH} + case TJK: + return []LanguageCode{LanguageTG, LanguageRU} case TZA: - return LanguageSW + return []LanguageCode{LanguageSW, LanguageEN} + case THA: + return []LanguageCode{LanguageTH} + case TLS: + return []LanguageCode{LanguagePT, LanguageTE} case TGO: - return LanguageFR - case TKL: - return LanguageEN + return []LanguageCode{LanguageFR} case TON: - return LanguageTO + return []LanguageCode{LanguageTO, LanguageEN} case TTO: - return LanguageEN - case TUV: - return LanguageEN + return []LanguageCode{LanguageEN} case TUN: - return LanguageAR - case TKM: - return LanguageTK + return []LanguageCode{LanguageAR} case TUR: - return LanguageTR + return []LanguageCode{LanguageTR} + case TKM: + return []LanguageCode{LanguageTK, LanguageRU} + case TUV: + return []LanguageCode{LanguageEN} case UGA: - return LanguageEN - case UZB: - return LanguageUZ + return []LanguageCode{LanguageEN} case UKR: - return LanguageUK + return []LanguageCode{LanguageUK} + case ARE: + return []LanguageCode{LanguageAR} + case GBR: + return []LanguageCode{LanguageEN} + case USA: + return []LanguageCode{LanguageEN} case URY: - return LanguageES - case FRO: - return LanguageFO - case FJI: - return LanguageEN - case PHL: - return LanguageTL - case FIN: - return LanguageFI - case FLK: - return LanguageEN - case FRA: - return LanguageFR - case GUF: - return LanguageFR - case PYF: - return LanguageFR - case ATF: - return LanguageFR - case HRV: - return LanguageHR - case CAF: - return LanguageFR - case TCD: - return LanguageFR - case CZE: - return LanguageCS - case CHL: - return LanguageES - case CHE: - return LanguageDE - case SWE: - return LanguageSV - case LKA: - return LanguageSI - case ECU: - return LanguageES - case GNQ: - return LanguageES - case ERI: - return LanguageTI - case EST: - return LanguageET - case ETH: - return LanguageAM - case ZAF: - return LanguageAF - case YUG: - return LanguageSR - case SGS: - return LanguageEN - case JAM: - return LanguageEN - case MNE: - return LanguageSR - case BLM: - return LanguageFR - case SXM: - return LanguageNL - case SRB: - return LanguageSR - case ALA: - return LanguageSV - case BES: - return LanguageNL - case GGY: - return LanguageEN - case JEY: - return LanguageEN - case CUW: - return LanguageNL - case MAF: - return LanguageFR - case SSD: - return LanguageEN - case XKX: - return LanguageSQ - case JPN: - return LanguageJA + return []LanguageCode{LanguageES} + case UZB: + return []LanguageCode{LanguageUZ} + case VUT: + return []LanguageCode{LanguageBI, LanguageEN, LanguageFR} + case VEN: + return []LanguageCode{LanguageES} + case VNM: + return []LanguageCode{LanguageVI} + case WSM: + return []LanguageCode{LanguageSM, LanguageEN} + case YEM: + return []LanguageCode{LanguageAR} + case ZMB: + return []LanguageCode{LanguageEN} + case ZWE: + return []LanguageCode{LanguageEN, LanguageSN, LanguageND} + default: + return []LanguageCode{} } - return LanguageUnknown } // Capital - return a capital of country diff --git a/languages.go b/languages.go index fa0c263..6c944ae 100644 --- a/languages.go +++ b/languages.go @@ -254,6 +254,8 @@ func (lc LanguageCode) String() string { //nolint:gocyclo return "Norwegian Nynorsk" case LanguageNO: return "Norwegian" + case LanguageNR: + return "South Ndebele" case LanguageNS: return "Northern Sotho" case LanguageNV: @@ -352,6 +354,8 @@ func (lc LanguageCode) String() string { //nolint:gocyclo return "Tsonga" case LanguageTT: return "Tatar" + case LanguageTVL: + return "Tuvaluan" case LanguageTW: return "Twi" case LanguageTY: @@ -392,7 +396,11 @@ func (lc LanguageCode) String() string { //nolint:gocyclo } func (lc LanguageCode) Alpha2() string { - return string(lc) + if len(string(lc)) == 2 { + return string(lc) + } + + return "unknown" } func (lc LanguageCode) Alpha3() string { @@ -633,6 +641,8 @@ func (lc LanguageCode) Alpha3() string { return "nno" case LanguageNO: return "nor" + case LanguageNR: + return "nbl" case LanguageNS: return "nso" case LanguageNV: @@ -733,6 +743,8 @@ func (lc LanguageCode) Alpha3() string { return "tat" case LanguageTW: return "twi" + case LanguageTVL: + return "tvl" case LanguageTY: return "tah" case LanguageUG: @@ -1009,6 +1021,8 @@ func (lc LanguageCode) StringRus() string { //nolint:gocyclo return "Норвежский нюнорск" case LanguageNO: return "Норвежский" + case LanguageNR: + return "Южный ндебеле" case LanguageNS: return "Северный сото" case LanguageNV: @@ -1109,6 +1123,8 @@ func (lc LanguageCode) StringRus() string { //nolint:gocyclo return "Татарский" case LanguageTW: return "Тви" + case LanguageTVL: + return "тувалуанский" case LanguageTY: return "Таитянский" case LanguageUG: @@ -1374,7 +1390,7 @@ func (lc LanguageCode) StringLocal() string { case LanguageNB: return "Norsk bokmål" case LanguageND: - return "isiNdebele" + return "Ndebele" case LanguageNE: return "नेपाली" case LanguageNG: @@ -1385,6 +1401,8 @@ func (lc LanguageCode) StringLocal() string { return "Norsk nynorsk" case LanguageNO: return "Norsk" + case LanguageNR: + return "isiNdebele" case LanguageNS: return "Sesotho sa Leboa" case LanguageNV: @@ -1485,6 +1503,8 @@ func (lc LanguageCode) StringLocal() string { return "татар теле" case LanguageTW: return "Twi" + case LanguageTVL: + return "Te Ggana Tuuvalu" case LanguageTY: return "Reo Tahiti" case LanguageUG: @@ -1568,13 +1588,13 @@ func AllLanguages() []LanguageCode { LanguageIT, LanguageIU, LanguageJA, LanguageJV, LanguageKA, LanguageKG, LanguageKI, LanguageKJ, LanguageKK, LanguageKL, LanguageKM, LanguageKN, LanguageKO, LanguageKR, LanguageKS, LanguageKU, LanguageKV, LanguageKW, LanguageKY, LanguageLA, LanguageLB, LanguageLG, LanguageLI, LanguageLN, LanguageLO, LanguageLT, LanguageLU, LanguageLV, LanguageMG, LanguageMH, LanguageMI, LanguageMK, LanguageML, LanguageMN, LanguageMR, LanguageMS, - LanguageMT, LanguageMY, LanguageNA, LanguageNB, LanguageND, LanguageNE, LanguageNG, LanguageNL, LanguageNN, LanguageNO, LanguageNS, LanguageNV, - LanguageNY, LanguageOC, LanguageOJ, LanguageOM, LanguageOR, LanguageOS, LanguagePA, LanguagePI, LanguagePL, LanguagePS, LanguagePT, LanguageQU, - LanguageRM, LanguageRN, LanguageRO, LanguageRU, LanguageRW, LanguageSA, LanguageSC, LanguageSD, LanguageSE, LanguageSG, LanguageSI, LanguageSK, - LanguageSL, LanguageSM, LanguageSN, LanguageSO, LanguageSQ, LanguageSR, LanguageSS, LanguageST, LanguageSU, LanguageSV, LanguageSW, LanguageTA, - LanguageTE, LanguageTG, LanguageTH, LanguageTI, LanguageTK, LanguageTL, LanguageTN, LanguageTO, LanguageTR, LanguageTS, LanguageTT, LanguageTW, - LanguageTY, LanguageUG, LanguageUK, LanguageUR, LanguageUZ, LanguageVE, LanguageVI, LanguageVO, LanguageWA, LanguageWO, LanguageXH, LanguageYI, - LanguageYO, LanguageZA, LanguageZH, LanguageZU, + LanguageMT, LanguageMY, LanguageNA, LanguageNB, LanguageND, LanguageNE, LanguageNG, LanguageNL, LanguageNN, LanguageNO, LanguageNR, LanguageNS, + LanguageNV, LanguageNY, LanguageOC, LanguageOJ, LanguageOM, LanguageOR, LanguageOS, LanguagePA, LanguagePI, LanguagePL, LanguagePS, LanguagePT, + LanguageQU, LanguageRM, LanguageRN, LanguageRO, LanguageRU, LanguageRW, LanguageSA, LanguageSC, LanguageSD, LanguageSE, LanguageSG, LanguageSI, + LanguageSK, LanguageSL, LanguageSM, LanguageSN, LanguageSO, LanguageSQ, LanguageSR, LanguageSS, LanguageST, LanguageSU, LanguageSV, LanguageSW, + LanguageTA, LanguageTE, LanguageTG, LanguageTH, LanguageTI, LanguageTK, LanguageTL, LanguageTN, LanguageTO, LanguageTR, LanguageTS, LanguageTT, + LanguageTW, LanguageTVL, LanguageTY, LanguageUG, LanguageUK, LanguageUR, LanguageUZ, LanguageVE, LanguageVI, LanguageVO, LanguageWA, LanguageWO, + LanguageXH, LanguageYI, LanguageYO, LanguageZA, LanguageZH, LanguageZU, } } @@ -1825,6 +1845,8 @@ func LanguageCodeByName(name string) LanguageCode { //nolint:gocyclo return LanguageNN case "NO", "NORWEGIAN": return LanguageNO + case "NR", "SOUTHNDEBELE": + return LanguageNR case "NS", "NORTHERNSOTHO": return LanguageNS case "NV", "NAVAJO": @@ -1925,6 +1947,8 @@ func LanguageCodeByName(name string) LanguageCode { //nolint:gocyclo return LanguageTT case "TW", "TWI": return LanguageTW + case "TVL", "TUVALUAN": + return LanguageTVL case "TY", "TAHITIAN": return LanguageTY case "UG", "UIGHUR": diff --git a/languagesconst.go b/languagesconst.go index fdb1f2f..72abfdb 100644 --- a/languagesconst.go +++ b/languagesconst.go @@ -130,7 +130,7 @@ const ( LanguageDutch LanguageCode = "nl" LanguageNorwegianNynorsk LanguageCode = "nn" LanguageNorwegian LanguageCode = "no" - LanguageSouthNdebele LanguageCode = "ns" + LanguageSouthNdebele LanguageCode = "nr" LanguageNavajo LanguageCode = "nv" LanguageChichewa LanguageCode = "ny" LanguageOccitan LanguageCode = "oc" @@ -181,6 +181,7 @@ const ( LanguageTatar LanguageCode = "tt" LanguageTwi LanguageCode = "tw" LanguageTahitian LanguageCode = "ty" + LanguageTuvaluan LanguageCode = "tvl" LanguageUighur LanguageCode = "ug" LanguageUkrainian LanguageCode = "uk" LanguageUrdu LanguageCode = "ur" @@ -200,188 +201,190 @@ const ( // ISO 639-1 language code name, 2 codes present e.g. LanguageRU == LanguageRussian = "ru". const ( - LanguageAA LanguageCode = "aa" - LanguageAB LanguageCode = "ab" - LanguageAE LanguageCode = "ae" - LanguageAF LanguageCode = "af" - LanguageAK LanguageCode = "ak" - LanguageAM LanguageCode = "am" - LanguageAN LanguageCode = "an" - LanguageAR LanguageCode = "ar" - LanguageAS LanguageCode = "as" - LanguageAV LanguageCode = "av" - LanguageAY LanguageCode = "ay" - LanguageAZ LanguageCode = "az" - LanguageBA LanguageCode = "ba" - LanguageBE LanguageCode = "be" - LanguageBG LanguageCode = "bg" - LanguageBH LanguageCode = "bh" - LanguageBI LanguageCode = "bi" - LanguageBM LanguageCode = "bm" - LanguageBN LanguageCode = "bn" - LanguageBO LanguageCode = "bo" - LanguageBR LanguageCode = "br" - LanguageBS LanguageCode = "bs" - LanguageCA LanguageCode = "ca" - LanguageCE LanguageCode = "ce" - LanguageCH LanguageCode = "ch" - LanguageCO LanguageCode = "co" - LanguageCR LanguageCode = "cr" - LanguageCS LanguageCode = "cs" - LanguageCU LanguageCode = "cu" - LanguageCV LanguageCode = "cv" - LanguageCY LanguageCode = "cy" - LanguageDA LanguageCode = "da" - LanguageDE LanguageCode = "de" - LanguageDV LanguageCode = "dv" - LanguageDZ LanguageCode = "dz" - LanguageEE LanguageCode = "ee" - LanguageEL LanguageCode = "el" - LanguageEN LanguageCode = "en" - LanguageEO LanguageCode = "eo" - LanguageES LanguageCode = "es" - LanguageET LanguageCode = "et" - LanguageEU LanguageCode = "eu" - LanguageFA LanguageCode = "fa" - LanguageFF LanguageCode = "ff" - LanguageFI LanguageCode = "fi" - LanguageFJ LanguageCode = "fj" - LanguageFO LanguageCode = "fo" - LanguageFR LanguageCode = "fr" - LanguageFY LanguageCode = "fy" - LanguageGA LanguageCode = "ga" - LanguageGD LanguageCode = "gd" - LanguageGL LanguageCode = "gl" - LanguageGN LanguageCode = "gn" - LanguageGU LanguageCode = "gu" - LanguageGV LanguageCode = "gv" - LanguageHA LanguageCode = "ha" - LanguageHE LanguageCode = "he" - LanguageHI LanguageCode = "hi" - LanguageHO LanguageCode = "ho" - LanguageHR LanguageCode = "hr" - LanguageHT LanguageCode = "ht" - LanguageHU LanguageCode = "hu" - LanguageHY LanguageCode = "hy" - LanguageHZ LanguageCode = "hz" - LanguageIA LanguageCode = "ia" - LanguageID LanguageCode = "id" - LanguageIE LanguageCode = "ie" - LanguageIG LanguageCode = "ig" - LanguageII LanguageCode = "ii" - LanguageIK LanguageCode = "ik" - LanguageIO LanguageCode = "io" - LanguageIS LanguageCode = "is" - LanguageIT LanguageCode = "it" - LanguageIU LanguageCode = "iu" - LanguageJA LanguageCode = "ja" - LanguageJV LanguageCode = "jv" - LanguageKA LanguageCode = "ka" - LanguageKG LanguageCode = "kg" - LanguageKI LanguageCode = "ki" - LanguageKJ LanguageCode = "kj" - LanguageKK LanguageCode = "kk" - LanguageKL LanguageCode = "kl" - LanguageKM LanguageCode = "km" - LanguageKN LanguageCode = "kn" - LanguageKO LanguageCode = "ko" - LanguageKR LanguageCode = "kr" - LanguageKS LanguageCode = "ks" - LanguageKU LanguageCode = "ku" - LanguageKV LanguageCode = "kv" - LanguageKW LanguageCode = "kw" - LanguageKY LanguageCode = "ky" - LanguageLA LanguageCode = "la" - LanguageLB LanguageCode = "lb" - LanguageLG LanguageCode = "lg" - LanguageLI LanguageCode = "li" - LanguageLN LanguageCode = "ln" - LanguageLO LanguageCode = "lo" - LanguageLT LanguageCode = "lt" - LanguageLU LanguageCode = "lu" - LanguageLV LanguageCode = "lv" - LanguageMG LanguageCode = "mg" - LanguageMH LanguageCode = "mh" - LanguageMI LanguageCode = "mi" - LanguageMK LanguageCode = "mk" - LanguageML LanguageCode = "ml" - LanguageMN LanguageCode = "mn" - LanguageMR LanguageCode = "mr" - LanguageMS LanguageCode = "ms" - LanguageMT LanguageCode = "mt" - LanguageMY LanguageCode = "my" - LanguageNA LanguageCode = "na" - LanguageNB LanguageCode = "nb" - LanguageND LanguageCode = "nd" - LanguageNE LanguageCode = "ne" - LanguageNG LanguageCode = "ng" - LanguageNL LanguageCode = "nl" - LanguageNN LanguageCode = "nn" - LanguageNO LanguageCode = "no" - LanguageNS LanguageCode = "ns" - LanguageNV LanguageCode = "nv" - LanguageNY LanguageCode = "ny" - LanguageOC LanguageCode = "oc" - LanguageOJ LanguageCode = "oj" - LanguageOM LanguageCode = "om" - LanguageOR LanguageCode = "or" - LanguageOS LanguageCode = "os" - LanguagePA LanguageCode = "pa" - LanguagePI LanguageCode = "pi" - LanguagePL LanguageCode = "pl" - LanguagePS LanguageCode = "ps" - LanguagePT LanguageCode = "pt" - LanguageQU LanguageCode = "qu" - LanguageRM LanguageCode = "rm" - LanguageRN LanguageCode = "rn" - LanguageRO LanguageCode = "ro" - LanguageRU LanguageCode = "ru" - LanguageRW LanguageCode = "rw" - LanguageSA LanguageCode = "sa" - LanguageSC LanguageCode = "sc" - LanguageSD LanguageCode = "sd" - LanguageSE LanguageCode = "se" - LanguageSG LanguageCode = "sg" - LanguageSI LanguageCode = "si" - LanguageSK LanguageCode = "sk" - LanguageSL LanguageCode = "sl" - LanguageSM LanguageCode = "sm" - LanguageSN LanguageCode = "sn" - LanguageSO LanguageCode = "so" - LanguageSQ LanguageCode = "sq" - LanguageSR LanguageCode = "sr" - LanguageSS LanguageCode = "ss" - LanguageST LanguageCode = "st" - LanguageSU LanguageCode = "su" - LanguageSV LanguageCode = "sv" - LanguageSW LanguageCode = "sw" - LanguageTA LanguageCode = "ta" - LanguageTE LanguageCode = "te" - LanguageTG LanguageCode = "tg" - LanguageTH LanguageCode = "th" - LanguageTI LanguageCode = "ti" - LanguageTK LanguageCode = "tk" - LanguageTL LanguageCode = "tl" - LanguageTN LanguageCode = "tn" - LanguageTO LanguageCode = "to" - LanguageTR LanguageCode = "tr" - LanguageTS LanguageCode = "ts" - LanguageTT LanguageCode = "tt" - LanguageTW LanguageCode = "tw" - LanguageTY LanguageCode = "ty" - LanguageUG LanguageCode = "ug" - LanguageUK LanguageCode = "uk" - LanguageUR LanguageCode = "ur" - LanguageUZ LanguageCode = "uz" - LanguageVE LanguageCode = "ve" - LanguageVI LanguageCode = "vi" - LanguageVO LanguageCode = "vo" - LanguageWA LanguageCode = "wa" - LanguageWO LanguageCode = "wo" - LanguageXH LanguageCode = "xh" - LanguageYI LanguageCode = "yi" - LanguageYO LanguageCode = "yo" - LanguageZA LanguageCode = "za" - LanguageZH LanguageCode = "zh" - LanguageZU LanguageCode = "zu" + LanguageAA LanguageCode = "aa" + LanguageAB LanguageCode = "ab" + LanguageAE LanguageCode = "ae" + LanguageAF LanguageCode = "af" + LanguageAK LanguageCode = "ak" + LanguageAM LanguageCode = "am" + LanguageAN LanguageCode = "an" + LanguageAR LanguageCode = "ar" + LanguageAS LanguageCode = "as" + LanguageAV LanguageCode = "av" + LanguageAY LanguageCode = "ay" + LanguageAZ LanguageCode = "az" + LanguageBA LanguageCode = "ba" + LanguageBE LanguageCode = "be" + LanguageBG LanguageCode = "bg" + LanguageBH LanguageCode = "bh" + LanguageBI LanguageCode = "bi" + LanguageBM LanguageCode = "bm" + LanguageBN LanguageCode = "bn" + LanguageBO LanguageCode = "bo" + LanguageBR LanguageCode = "br" + LanguageBS LanguageCode = "bs" + LanguageCA LanguageCode = "ca" + LanguageCE LanguageCode = "ce" + LanguageCH LanguageCode = "ch" + LanguageCO LanguageCode = "co" + LanguageCR LanguageCode = "cr" + LanguageCS LanguageCode = "cs" + LanguageCU LanguageCode = "cu" + LanguageCV LanguageCode = "cv" + LanguageCY LanguageCode = "cy" + LanguageDA LanguageCode = "da" + LanguageDE LanguageCode = "de" + LanguageDV LanguageCode = "dv" + LanguageDZ LanguageCode = "dz" + LanguageEE LanguageCode = "ee" + LanguageEL LanguageCode = "el" + LanguageEN LanguageCode = "en" + LanguageEO LanguageCode = "eo" + LanguageES LanguageCode = "es" + LanguageET LanguageCode = "et" + LanguageEU LanguageCode = "eu" + LanguageFA LanguageCode = "fa" + LanguageFF LanguageCode = "ff" + LanguageFI LanguageCode = "fi" + LanguageFJ LanguageCode = "fj" + LanguageFO LanguageCode = "fo" + LanguageFR LanguageCode = "fr" + LanguageFY LanguageCode = "fy" + LanguageGA LanguageCode = "ga" + LanguageGD LanguageCode = "gd" + LanguageGL LanguageCode = "gl" + LanguageGN LanguageCode = "gn" + LanguageGU LanguageCode = "gu" + LanguageGV LanguageCode = "gv" + LanguageHA LanguageCode = "ha" + LanguageHE LanguageCode = "he" + LanguageHI LanguageCode = "hi" + LanguageHO LanguageCode = "ho" + LanguageHR LanguageCode = "hr" + LanguageHT LanguageCode = "ht" + LanguageHU LanguageCode = "hu" + LanguageHY LanguageCode = "hy" + LanguageHZ LanguageCode = "hz" + LanguageIA LanguageCode = "ia" + LanguageID LanguageCode = "id" + LanguageIE LanguageCode = "ie" + LanguageIG LanguageCode = "ig" + LanguageII LanguageCode = "ii" + LanguageIK LanguageCode = "ik" + LanguageIO LanguageCode = "io" + LanguageIS LanguageCode = "is" + LanguageIT LanguageCode = "it" + LanguageIU LanguageCode = "iu" + LanguageJA LanguageCode = "ja" + LanguageJV LanguageCode = "jv" + LanguageKA LanguageCode = "ka" + LanguageKG LanguageCode = "kg" + LanguageKI LanguageCode = "ki" + LanguageKJ LanguageCode = "kj" + LanguageKK LanguageCode = "kk" + LanguageKL LanguageCode = "kl" + LanguageKM LanguageCode = "km" + LanguageKN LanguageCode = "kn" + LanguageKO LanguageCode = "ko" + LanguageKR LanguageCode = "kr" + LanguageKS LanguageCode = "ks" + LanguageKU LanguageCode = "ku" + LanguageKV LanguageCode = "kv" + LanguageKW LanguageCode = "kw" + LanguageKY LanguageCode = "ky" + LanguageLA LanguageCode = "la" + LanguageLB LanguageCode = "lb" + LanguageLG LanguageCode = "lg" + LanguageLI LanguageCode = "li" + LanguageLN LanguageCode = "ln" + LanguageLO LanguageCode = "lo" + LanguageLT LanguageCode = "lt" + LanguageLU LanguageCode = "lu" + LanguageLV LanguageCode = "lv" + LanguageMG LanguageCode = "mg" + LanguageMH LanguageCode = "mh" + LanguageMI LanguageCode = "mi" + LanguageMK LanguageCode = "mk" + LanguageML LanguageCode = "ml" + LanguageMN LanguageCode = "mn" + LanguageMR LanguageCode = "mr" + LanguageMS LanguageCode = "ms" + LanguageMT LanguageCode = "mt" + LanguageMY LanguageCode = "my" + LanguageNA LanguageCode = "na" + LanguageNB LanguageCode = "nb" + LanguageND LanguageCode = "nd" + LanguageNE LanguageCode = "ne" + LanguageNG LanguageCode = "ng" + LanguageNL LanguageCode = "nl" + LanguageNN LanguageCode = "nn" + LanguageNO LanguageCode = "no" + LanguageNS LanguageCode = "ns" + LanguageNR LanguageCode = "nr" + LanguageNV LanguageCode = "nv" + LanguageNY LanguageCode = "ny" + LanguageOC LanguageCode = "oc" + LanguageOJ LanguageCode = "oj" + LanguageOM LanguageCode = "om" + LanguageOR LanguageCode = "or" + LanguageOS LanguageCode = "os" + LanguagePA LanguageCode = "pa" + LanguagePI LanguageCode = "pi" + LanguagePL LanguageCode = "pl" + LanguagePS LanguageCode = "ps" + LanguagePT LanguageCode = "pt" + LanguageQU LanguageCode = "qu" + LanguageRM LanguageCode = "rm" + LanguageRN LanguageCode = "rn" + LanguageRO LanguageCode = "ro" + LanguageRU LanguageCode = "ru" + LanguageRW LanguageCode = "rw" + LanguageSA LanguageCode = "sa" + LanguageSC LanguageCode = "sc" + LanguageSD LanguageCode = "sd" + LanguageSE LanguageCode = "se" + LanguageSG LanguageCode = "sg" + LanguageSI LanguageCode = "si" + LanguageSK LanguageCode = "sk" + LanguageSL LanguageCode = "sl" + LanguageSM LanguageCode = "sm" + LanguageSN LanguageCode = "sn" + LanguageSO LanguageCode = "so" + LanguageSQ LanguageCode = "sq" + LanguageSR LanguageCode = "sr" + LanguageSS LanguageCode = "ss" + LanguageST LanguageCode = "st" + LanguageSU LanguageCode = "su" + LanguageSV LanguageCode = "sv" + LanguageSW LanguageCode = "sw" + LanguageTA LanguageCode = "ta" + LanguageTE LanguageCode = "te" + LanguageTG LanguageCode = "tg" + LanguageTH LanguageCode = "th" + LanguageTI LanguageCode = "ti" + LanguageTK LanguageCode = "tk" + LanguageTL LanguageCode = "tl" + LanguageTN LanguageCode = "tn" + LanguageTO LanguageCode = "to" + LanguageTR LanguageCode = "tr" + LanguageTS LanguageCode = "ts" + LanguageTT LanguageCode = "tt" + LanguageTW LanguageCode = "tw" + LanguageTVL LanguageCode = "tvl" + LanguageTY LanguageCode = "ty" + LanguageUG LanguageCode = "ug" + LanguageUK LanguageCode = "uk" + LanguageUR LanguageCode = "ur" + LanguageUZ LanguageCode = "uz" + LanguageVE LanguageCode = "ve" + LanguageVI LanguageCode = "vi" + LanguageVO LanguageCode = "vo" + LanguageWA LanguageCode = "wa" + LanguageWO LanguageCode = "wo" + LanguageXH LanguageCode = "xh" + LanguageYI LanguageCode = "yi" + LanguageYO LanguageCode = "yo" + LanguageZA LanguageCode = "za" + LanguageZH LanguageCode = "zh" + LanguageZU LanguageCode = "zu" )