From f096a228245c9d24f2909aee2facdb06748b8eee Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 7 Aug 2025 21:30:47 +0200 Subject: [PATCH] Enhance CountryFlag to accept country names and codes - Add actualCountryCode computed property to handle both 2-letter codes and country names - Extend parseCountryInput with common country name variations (USA, UK, etc.) - Import parseCountryInput utility in CountryFlag component - Update template to use actualCountryCode instead of direct countryCode prop --- components/CountryFlag.vue | 26 ++++++++++++++++++++------ utils/countries.ts | 24 +++++++++++++++++++++++- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/components/CountryFlag.vue b/components/CountryFlag.vue index 8520af9..9783476 100644 --- a/components/CountryFlag.vue +++ b/components/CountryFlag.vue @@ -2,24 +2,24 @@ - - {{ getCountryName(countryCode) }} + + {{ getCountryName(actualCountryCode) }}