'use client' /** * LocaleSwitcher * * Simple SV / EN text switcher with fade transition. * NOT wired into nav yet — import when EN content is ready. * * Usage in Nav/index.tsx when ready: * import { LocaleSwitcher } from '@/components/LocaleSwitcher' * */ import { usePathname } from 'next/navigation' import Link from 'next/link' export function LocaleSwitcher() { const pathname = usePathname() const isEN = pathname.startsWith('/en') const alternatePath = isEN ? pathname.replace(/^\/en/, '') || '/' : `/en${pathname === '/' ? '' : pathname}` return ( SV EN ) }