feat(i18n): add localized navigation and news translations
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { listPublicNavigation } from "@cms/db"
|
||||
import { getLocale } from "next-intl/server"
|
||||
|
||||
import { Link } from "@/i18n/navigation"
|
||||
|
||||
import { LanguageSwitcher } from "./language-switcher"
|
||||
|
||||
export async function PublicSiteHeader() {
|
||||
const navItems = await listPublicNavigation("header")
|
||||
const locale = await getLocale()
|
||||
const navItems = await listPublicNavigation("header", locale)
|
||||
|
||||
return (
|
||||
<header className="border-b border-neutral-200 bg-white/80 backdrop-blur">
|
||||
|
||||
Reference in New Issue
Block a user