Fix dynamic default locale routing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user