feat(i18n): add locale switcher

This commit is contained in:
2026-04-14 22:32:44 +02:00
parent 7ee9adcc9e
commit 5c59da8ac3
6 changed files with 95 additions and 13 deletions
+5 -1
View File
@@ -5,6 +5,7 @@ import Link from "next/link"
import { cn } from "@/lib/utils"
import { ThemeSwitch } from "./theme-switch"
import { useTranslations } from "next-intl"
import { LocaleSwitch } from "./locale-switch"
export default function Navbar() {
const [scrolled, setScrolled] = useState(false);
@@ -55,7 +56,10 @@ export default function Navbar() {
</li>
</ul>
<ThemeSwitch/>
<div className="flex gap-3">
<ThemeSwitch/>
<LocaleSwitch/>
</div>
</nav>
</header>
)