Fix dynamic default locale routing

This commit is contained in:
MOH
2026-03-15 04:41:08 +01:00
parent 50c3f5cce9
commit 364f761420
13 changed files with 73 additions and 32 deletions
@@ -9,11 +9,13 @@ import { cn } from "@/lib/utils";
type FloatingPreferencesProps = {
locale: string;
defaultLocale: "de" | "en" | "ar";
className?: string;
};
export function FloatingPreferences({
locale,
defaultLocale,
className,
}: FloatingPreferencesProps) {
const t = useTranslations("navigation");
@@ -39,6 +41,7 @@ export function FloatingPreferences({
/>
<LocaleToggle
locale={locale}
defaultLocale={defaultLocale}
className="h-9 w-9 rounded-pill border border-transparent bg-transparent p-0 text-foreground/80 hover:bg-accent hover:text-foreground"
/>
</div>