"use client"; import { useLocale, useTranslations } from "next-intl"; import { useRouter, usePathname } from "@/i18n/navigation"; import { Globe } from "lucide-react"; import { cn } from "@/lib/utils"; import { routing } from "@/i18n/routing"; export function LanguageSwitcher() { const locale = useLocale(); const router = useRouter(); const pathname = usePathname(); const t = useTranslations("languageSwitcher"); const switchLocale = (newLocale: string) => { router.replace(pathname, { locale: newLocale }); }; return (