--- import Wordmark from './Wordmark.astro'; import { localePath, t, type Lang } from '../i18n/ui'; interface Props { lang: Lang; tone?: 'paper' | 'night' } const { lang, tone = 'paper' } = Astro.props; const ui = t(lang); const home = localePath(lang, '/'); const items = [ { href: localePath(lang, '/cipherverifier'), label: ui.nav.product }, { href: localePath(lang, '/insights'), label: ui.nav.insights }, { href: localePath(lang, '/team'), label: ui.nav.team }, ]; const contactHref = `${home}#contact`; const path = Astro.url.pathname.replace(/\/$/, '') || '/'; const isCurrent = (href: string) => href.split('#')[0] === path && !href.includes('#'); ---
{ui.nav.contact}