Compare commits

..

2 Commits

Author SHA1 Message Date
valknar e4d9772c47 fix: add missing team name variants and defunct nations to iso-codes
Real teams missing from TEAM_ISO: Bosnia-Herzegovina (ba), Kosovo (xk),
New Caledonia (nc), Suriname (sr). Defunct/dissolved with no flag-icons
code: Serbia and Montenegro (cs retired), Zaire (zr retired) → null.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 19:33:01 +02:00
valknar c98d45da79 fix: add Türkiye alias to iso-codes (openfootball uses new name)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 19:31:13 +02:00
+8 -7
View File
@@ -4,7 +4,7 @@ export const TEAM_ISO: Record<string, string | null> = {
'Argentina': 'ar', 'Armenia': 'am', 'Australia': 'au', 'Austria': 'at', 'Argentina': 'ar', 'Armenia': 'am', 'Australia': 'au', 'Austria': 'at',
// B // B
'Bahrain': 'bh', 'Belgium': 'be', 'Bolivia': 'bo', 'Bahrain': 'bh', 'Belgium': 'be', 'Bolivia': 'bo',
'Bosnia & Herzegovina': 'ba', 'Bosnia and Herzegovina': 'ba', 'Brazil': 'br', 'Bosnia & Herzegovina': 'ba', 'Bosnia and Herzegovina': 'ba', 'Bosnia-Herzegovina': 'ba', 'Brazil': 'br',
'Bulgaria': 'bg', 'Burkina Faso': 'bf', 'Bulgaria': 'bg', 'Burkina Faso': 'bf',
// C // C
'Cameroon': 'cm', 'Canada': 'ca', 'Cape Verde': 'cv', 'Chile': 'cl', 'Cameroon': 'cm', 'Canada': 'ca', 'Cape Verde': 'cv', 'Chile': 'cl',
@@ -31,14 +31,14 @@ export const TEAM_ISO: Record<string, string | null> = {
// J // J
'Jamaica': 'jm', 'Japan': 'jp', 'Jordan': 'jo', 'Jamaica': 'jm', 'Japan': 'jp', 'Jordan': 'jo',
// K // K
'Kazakhstan': 'kz', 'Kenya': 'ke', 'Kuwait': 'kw', 'Kazakhstan': 'kz', 'Kenya': 'ke', 'Kosovo': 'xk', 'Kuwait': 'kw',
// L // L
'Latvia': 'lv', 'Lebanon': 'lb', 'Liberia': 'lr', 'Lithuania': 'lt', 'Latvia': 'lv', 'Lebanon': 'lb', 'Liberia': 'lr', 'Lithuania': 'lt',
// M // M
'Mali': 'ml', 'Malta': 'mt', 'Mexico': 'mx', 'Moldova': 'md', 'Mali': 'ml', 'Malta': 'mt', 'Mexico': 'mx', 'Moldova': 'md',
'Montenegro': 'me', 'Morocco': 'ma', 'Mozambique': 'mz', 'Montenegro': 'me', 'Morocco': 'ma', 'Mozambique': 'mz',
// N // N
'Netherlands': 'nl', 'New Zealand': 'nz', 'Nigeria': 'ng', 'Netherlands': 'nl', 'New Caledonia': 'nc', 'New Zealand': 'nz', 'Nigeria': 'ng',
'North Korea': 'kp', "Korea DPR": 'kp', 'Northern Ireland': 'gb-nir', 'North Korea': 'kp', "Korea DPR": 'kp', 'Northern Ireland': 'gb-nir',
'North Macedonia': 'mk', 'Norway': 'no', 'North Macedonia': 'mk', 'Norway': 'no',
// O // O
@@ -52,22 +52,23 @@ export const TEAM_ISO: Record<string, string | null> = {
'Romania': 'ro', 'Russia': 'ru', 'Soviet Union': null, 'Romania': 'ro', 'Russia': 'ru', 'Soviet Union': null,
// S // S
'Saudi Arabia': 'sa', 'Scotland': 'gb-sct', 'Senegal': 'sn', 'Saudi Arabia': 'sa', 'Scotland': 'gb-sct', 'Senegal': 'sn',
'Serbia': 'rs', 'Yugoslavia': null, 'FR Yugoslavia': null, 'Czechoslovakia': null, 'Serbia': 'rs', 'Serbia and Montenegro': null,
'Yugoslavia': null, 'FR Yugoslavia': null, 'Czechoslovakia': null,
'Slovakia': 'sk', 'Slovenia': 'si', 'Slovakia': 'sk', 'Slovenia': 'si',
'Somalia': 'so', 'South Africa': 'za', 'South Korea': 'kr', 'Somalia': 'so', 'South Africa': 'za', 'South Korea': 'kr',
'Korea Republic': 'kr', 'Spain': 'es', 'Sweden': 'se', 'Switzerland': 'ch', 'Korea Republic': 'kr', 'Spain': 'es', 'Sweden': 'se', 'Switzerland': 'ch',
// T // T
'Taiwan': 'tw', 'Tanzania': 'tz', 'Thailand': 'th', 'Togo': 'tg', 'Taiwan': 'tw', 'Tanzania': 'tz', 'Thailand': 'th', 'Togo': 'tg',
'Trinidad and Tobago': 'tt', 'Tunisia': 'tn', 'Turkey': 'tr', 'Trinidad and Tobago': 'tt', 'Tunisia': 'tn', 'Turkey': 'tr', 'Türkiye': 'tr',
// U // U
'UAE': 'ae', 'United Arab Emirates': 'ae', 'Uganda': 'ug', 'Ukraine': 'ua', 'UAE': 'ae', 'United Arab Emirates': 'ae', 'Uganda': 'ug', 'Ukraine': 'ua',
'Uruguay': 'uy', 'USA': 'us', 'United States': 'us', 'Uzbekistan': 'uz', 'Uruguay': 'uy', 'USA': 'us', 'United States': 'us', 'Uzbekistan': 'uz',
// V // V
'Venezuela': 've', 'Vietnam': 'vn', 'Venezuela': 've', 'Vietnam': 'vn', 'Suriname': 'sr',
// W // W
'Wales': 'gb-wls', 'Wales': 'gb-wls',
// Z // Z
'Zambia': 'zm', 'Zimbabwe': 'zw', 'Zambia': 'zm', 'Zaire': null, 'Zimbabwe': 'zw',
} }
export function getIso(teamName: string): string | null { export function getIso(teamName: string): string | null {