From 10a06495d8f9145d68e68a5c0f8d55557c74aa20 Mon Sep 17 00:00:00 2001 From: Anthony G <1@anthony.sh> Date: Tue, 11 Aug 2026 08:59:16 +0200 Subject: [PATCH] feat: replace emoji flags with SVG flag images in LanguageSwitcher --- src/components/LanguageSwitcher.tsx | 35 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/components/LanguageSwitcher.tsx b/src/components/LanguageSwitcher.tsx index 8794495..4eae700 100644 --- a/src/components/LanguageSwitcher.tsx +++ b/src/components/LanguageSwitcher.tsx @@ -4,11 +4,11 @@ import { useLocale } from 'next-intl' import { useRouter, usePathname } from '@/navigation' import { routing } from '@/i18n/routing' -const FLAGS: Record = { - en: '🇺🇸', - fr: '🇫🇷', - es: '🇪🇸', - it: '🇮🇹', +const FLAG_LABELS: Record = { + en: 'English', + fr: 'Français', + es: 'Español', + it: 'Italiano', } export function LanguageSwitcher() { @@ -17,21 +17,26 @@ export function LanguageSwitcher() { const pathname = usePathname() return ( -
+
{routing.locales.map((loc) => ( ))}