--- /* CV split button (MICRO_INTERACTIONS): primary zone downloads the current-locale CV; the chevron is a native
disclosure listing both languages with file sizes — works with no JavaScript. nav.ts enhances it with outside-click / Esc close. */ import { useDict, interpolate } from '@i18n/t'; import type { Locale } from '@i18n/locales'; import { getProfile } from '@lib/content'; interface Props { locale: Locale; compact?: boolean; } const { locale, compact = false } = Astro.props; const d = useDict(locale); const p = getProfile(locale); const current = p.cv[locale]; const other = locale === 'en' ? p.cv.no : p.cv.en; const otherLabel = locale === 'en' ? d.cv.norsk : d.cv.english; const currentLabel = locale === 'en' ? d.cv.english : d.cv.norsk; ---
{d.cv.download} {!compact && EN/NO}