Skip to content

Commit

Permalink
added more aliases to countries
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomHashTags committed Nov 7, 2022
1 parent 5807a12 commit cf6fb5b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Sources/SwiftSovereignStates/Country.swift
Original file line number Diff line number Diff line change
Expand Up @@ -413,23 +413,26 @@ public enum Country : String, CaseIterable, SovereignState {
public func getAliases() -> [String]? {
switch self {
case .bahamas: return ["The Bahamas", "Bahamas, the"]
case .bolivia: return ["Bolivia (Plurinational State of)"]
case .bosnia_and_herzegovina: return ["BiH", "B&H", "Bosnia–Herzegovina", "Bosnia-Herzegovina", "Bosnia"]
case .cape_verde: return ["Cabo Verde"]
case .china: return ["People's Republic of China"]
case .ivory_coast: return ["Côte d'Ivoire", "Cote d'Ivoire", "Côte d’Ivoire"]
case .curacao: return ["Curacao"]
case .czech_republic: return ["Czechia"]
case .democratic_republic_of_the_congo: return ["Congo, Democratic Republic of", "Congo-Kinshasa", "Democratic Republic of Congo", "Democratic Republic of Congo", "DR Congo", "the DRC", "DROC", "Congo, the", "Congo", "Congo, Dem."]
case .democratic_republic_of_the_congo: return ["Congo, Democratic Republic of", "Congo-Kinshasa", "Democratic Republic of Congo", "Democratic Republic of Congo", "DR Congo", "the DRC", "DROC", "Congo, the", "Congo", "Congo, Dem.", "Congo (Democratic Republic of the)"]
case .eswatini: return ["Swaziland", "Eswatinia (Swaziland)"]
case .gambia: return ["The Gambia", "Gambia, the"]
case .faroe_islands: return ["Faroe Islands (Denmark)"]
case .gambia: return ["The Gambia", "Gambia, the", "Gambia, The"]
case .greenland: return ["Greenland (Denmark)"]
case .guinea_bissau: return ["Guinea-Bissau"]
case .hong_kong: return ["Hong Kong SAR"]
case .iran: return ["Persia", "Iran, Islamic Republic of"]
case .iran: return ["Persia", "Iran, Islamic Republic of", "Iran (Islamic Republic of"]
case .isle_of_man: return ["Mann", "Man, Isle of"]
case .luxembourg: return ["Luxemburg"]
case .macau: return ["Macao", "Macau, SAR of China"]
case .micronesia: return ["Micronesia, Federated States of"]
case .moldova: return ["Moldova, Republic of"]
case .micronesia: return ["Micronesia, Federated States of", "Micronesia (Federated States of)"]
case .moldova: return ["Moldova, Republic of", "Moldova (Republic of)"]
case .myanmar: return ["Burma"]
case .north_korea: return ["Korea, North", "Korea, Democratic People's Republic of"]
case .north_macedonia: return ["Macedonia"]
Expand All @@ -448,7 +451,7 @@ public enum Country : String, CaseIterable, SovereignState {
case .solomon_islands: return ["Soloman Island"]
case .south_korea: return ["Korea, South", "Korea (Republic of)", "Korea, Republic of"]
case .taiwan: return ["Chinese Taipei"]
case .tanzania: return ["Tanzania, United Republic of"]
case .tanzania: return ["Tanzania, United Republic of", "Tanzania (United Republic of)"]
case .timor_leste: return ["Timor-Leste", "East Timor"]
case .united_arab_emirates: return ["UAE"]
case .united_states: return ["United States of America"]
Expand Down

0 comments on commit cf6fb5b

Please sign in to comment.