Skip to content

Commit

Permalink
fix(dashboard): Correct Spain provinces in country-states.ts (#10264)
Browse files Browse the repository at this point in the history
Issues Addressed:

- Missing provinces (e.g., Ceuta, Melilla).
- Incorrect inclusion of states as provinces (e.g., Andalucía).
- Inclusion of a province from another country (e.g., Nouvelle-Calédonie).

Solution:

This update provides an accurate list of Spain's provinces based on the ISO 3166-2 standard.   Reference: [ISO 3166-2:ES - Provincias](https://es.wikipedia.org/wiki/ISO_3166-2:ES#Provincias).
  • Loading branch information
anthid authored Nov 27, 2024
1 parent 0be25a7 commit e04c9cf
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions packages/admin/dashboard/src/lib/data/country-states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,51 +1045,48 @@ const countryProvinceMap: Record<string, CountryProvinceObject> = {
ES: {
type: "province",
options: {
"ES-A": "A Coruña",
"ES-C": "A Coruña",
"ES-VI": "Álava",
"ES-AB": "Albacete",
"ES-A": "Alicante",
"ES-AL": "Almería",
"ES-AN": "Andalucía",
"ES-AR": "Aragón",
"ES-AS": "Asturias",
"ES-O": "Asturias",
"ES-AV": "Ávila",
"ES-B": "Barcelona",
"ES-BA": "Badajoz",
"ES-B": "Barcelona",
"ES-BI": "Bizkaia",
"ES-BU": "Burgos",
"ES-C": "Cáceres",
"ES-CC": "Cáceres",
"ES-CA": "Cádiz",
"ES-CM": "Castilla-La Mancha",
"ES-CL": "Castilla y León",
"ES-CN": "Canarias",
"ES-CT": "Catalunya",
"ES-S": "Cantabria",
"ES-CS": "Castellón",
"ES-CE": "Ceuta",
"ES-CR": "Ciudad Real",
"ES-CO": "Córdoba",
"ES-CU": "Cuenca",
"ES-EX": "Extremadura",
"ES-GA": "Galicia",
"ES-SS": "Gipuzkoa",
"ES-GI": "Girona",
"ES-GR": "Granada",
"ES-GU": "Guadalajara",
"ES-H": "Huelva",
"ES-HU": "Huesca",
"ES-IB": "Illes Balears",
"ES-PM": "Illes Balears",
"ES-J": "Jaén",
"ES-JA": "Jerez",
"ES-LO": "La Rioja",
"ES-GC": "Las Palmas",
"ES-LE": "León",
"ES-L": "Lleida",
"ES-LO": "La Rioja",
"ES-LU": "Lugo",
"ES-M": "Madrid",
"ES-MA": "Málaga",
"ES-ML": "Melilla",
"ES-MU": "Murcia",
"ES-NA": "Navarra",
"ES-NC": "Nouvelle-Calédonie",
"ES-O": "Ourense",
"ES-OR": "Ourense",
"ES-P": "Palencia",
"ES-PM": "Palma",
"ES-PO": "Pontevedra",
"ES-SA": "Salamanca",
"ES-TF": "Santa Cruz de Tenerife",
"ES-SG": "Segovia",
"ES-SE": "Sevilla",
"ES-SO": "Soria",
Expand All @@ -1098,9 +1095,8 @@ const countryProvinceMap: Record<string, CountryProvinceObject> = {
"ES-TO": "Toledo",
"ES-V": "Valencia",
"ES-VA": "Valladolid",
"ES-VI": "Vizcaya",
"ES-Z": "Zaragoza",
"ES-ZA": "Zamora",
"ES-Z": "Zaragoza",
},
},
TH: {
Expand Down

0 comments on commit e04c9cf

Please sign in to comment.