--- import translate from '$i18n/translate'; import tComponent from '$i18n/translations/components/newsIndex'; import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath'; import { getDate, getHref } from '$lib/newsUtils'; import type { CollectionEntry } from 'astro:content'; interface Props { headingLevel: 'h1' | 'h2' | 'h3' | 'h4'; newsItem: CollectionEntry<'news'>; } const { headingLevel, newsItem } = Astro.props; const locale = getLocaleFromPathOrThrow(Astro.url.pathname); const t = translate(locale); const publicationDate = getDate(newsItem); --- ${newsItem.data.title} `} />

{newsItem.data.summary}