--- import { useDict, interpolate } from '@i18n/t'; import type { Locale } from '@i18n/locales'; import { pathFor, type PageId } from '@i18n/slugMap'; import { getProfile } from '@lib/content'; import LangSwitch from '@components/ui/LangSwitch.astro'; interface Props { locale: Locale; pageId: PageId; } const { locale, pageId } = Astro.props; const d = useDict(locale); const p = getProfile(locale); const year = new Date().getFullYear(); const nav: { id: PageId; label: string }[] = [ { id: 'projects', label: d.nav.projects }, { id: 'experience', label: d.nav.experience }, { id: 'about', label: d.nav.about }, { id: 'contact', label: d.nav.contact }, ]; ---