Skip to content

Instantly share code, notes, and snippets.

@ken0nek
Created November 20, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ken0nek/884c6f3d135ad3210e8505aa07ec5820 to your computer and use it in GitHub Desktop.
Save ken0nek/884c6f3d135ad3210e8505aa07ec5820 to your computer and use it in GitHub Desktop.
App Store Country List from ttps://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/AppStoreTerritories.html
import Foundation
/*
https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/AppStoreTerritories.html
*/
public enum Country: String {
case unitedArabEmirates = "ae"
case antiguaAndBarbuda = "ag"
case anguilla = "ai"
case albania = "al"
case armenia = "am"
case angola = "ao"
case argentina = "ar"
case austria = "at"
case australia = "au"
case azerbaijan = "az"
case barbados = "bb"
case belgium = "be"
case burkinaFaso = "bf"
case bulgaria = "bg"
case bahrain = "bh"
case benin = "bj"
case bermuda = "bm"
case brunei = "bn"
case bolivia = "bo"
case brazil = "br"
case bahamas = "bs"
case bhutan = "bt"
case botswana = "bw"
case belarus = "by"
case belize = "bz"
case canada = "ca"
case republicOfCongo = "cg"
case switzerland = "ch"
case chile = "cl"
case china = "cn"
case colombia = "co"
case costaRica = "cr"
case capeVerde = "cv"
case cyprus = "cy"
case czechRepublic = "cz"
case germany = "de"
case denmark = "dk"
case dominica = "dm"
case dominicanRepublic = "do"
case algeria = "dz"
case ecuador = "ec"
case estonia = "ee"
case egypt = "eg"
case spain = "es"
case finland = "fi"
case fiji = "fj"
case federatedStatesOfMicronesia = "fm"
case france = "fr"
case unitedKingdom = "gb"
case grenada = "gd"
case ghana = "gh"
case gambia = "gm"
case greece = "gr"
case guatemala = "gt"
case guineaBissau = "gw"
case guyana = "gy"
case hongKong = "hk"
case honduras = "hn"
case croatia = "hr"
case hungary = "hu"
case indonesia = "id"
case ireland = "ie"
case israel = "il"
case india = "in"
case iceland = "is"
case italy = "it"
case jamaica = "jm"
case jordan = "jo"
case japan = "jp"
case kenya = "ke"
case kyrgyzstan = "kg"
case cambodia = "kh"
case saintKittsAndNevis = "kn"
case republicOfKorea = "kr"
case kuwait = "kw"
case caymanIslands = "ky"
case kazakstan = "kz"
case laoPeoplesDemocraticRepublic = "la"
case lebanon = "lb"
case saintLucia = "lc"
case sriLanka = "lk"
case liberia = "lr"
case lithuania = "lt"
case luxembourg = "lu"
case latvia = "lv"
case republicOfMoldova = "md"
case madagascar = "mg"
case macedonia = "mk"
case mali = "ml"
case mongolia = "mn"
case macau = "mo"
case mauritania = "mr"
case montserrat = "ms"
case malta = "mt"
case mauritius = "mu"
case malawi = "mw"
case mexico = "mx"
case malaysia = "my"
case mozambique = "mz"
case namibia = "na"
case niger = "ne"
case nigeria = "ng"
case nicaragua = "ni"
case netherlands = "nl"
case norway = "no"
case nepal = "np"
case newZealand = "nz"
case oman = "om"
case panama = "pa"
case peru = "pe"
case papuaNewGuinea = "pg"
case philippines = "ph"
case pakistan = "pk"
case poland = "pl"
case portugal = "pt"
case palau = "pw"
case paraguay = "py"
case qatar = "qa"
case romania = "ro"
case russia = "ru"
case saudiArabia = "sa"
case solomonIslands = "sb"
case seychelles = "sc"
case sweden = "se"
case singapore = "sg"
case slovenia = "si"
case slovakia = "sk"
case sierraLeone = "sl"
case senegal = "sn"
case suriname = "sr"
case saoTomeAndPrincipe = "st"
case elSalvador = "sv"
case swaziland = "sz"
case turksAndCaicos = "tc"
case chad = "td"
case thailand = "th"
case tajikistan = "tj"
case turkmenistan = "tm"
case tunisia = "tn"
case turkey = "tr"
case trinidadAndTobago = "tt"
case taiwan = "tw"
case tanzania = "tz"
case ukraine = "ua"
case uganda = "ug"
case unitedStates = "us"
case uruguay = "uy"
case uzbekistan = "uz"
case saintVincentAndTheGrenadines = "vc"
case venezuela = "ve"
case britishVirginIslands = "vg"
case vietnam = "vn"
case yemen = "ye"
case southAfrica = "za"
case zimbabwe = "zw"
}
extension Country {
public var code: String {
return rawValue
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment