feat(i18n): add locale switcher
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user