From e04c9cfb041cb791ed19a767e53582b576382933 Mon Sep 17 00:00:00 2001 From: anthid Date: Wed, 27 Nov 2024 14:31:47 +0100 Subject: [PATCH] fix(dashboard): Correct Spain provinces in country-states.ts (#10264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- .../dashboard/src/lib/data/country-states.ts | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/packages/admin/dashboard/src/lib/data/country-states.ts b/packages/admin/dashboard/src/lib/data/country-states.ts index 0329673ba6..cbd5c0b734 100644 --- a/packages/admin/dashboard/src/lib/data/country-states.ts +++ b/packages/admin/dashboard/src/lib/data/country-states.ts @@ -1045,51 +1045,48 @@ const countryProvinceMap: Record = { 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", @@ -1098,9 +1095,8 @@ const countryProvinceMap: Record = { "ES-TO": "Toledo", "ES-V": "Valencia", "ES-VA": "Valladolid", - "ES-VI": "Vizcaya", - "ES-Z": "Zaragoza", "ES-ZA": "Zamora", + "ES-Z": "Zaragoza", }, }, TH: {