--- import { l, t, astroI18n } from "astro-i18n"; astroI18n.init(Astro); import { getCollection } from "astro:content"; import EditorialContent from "../../components/EditorialContent.astro"; import BaseLayout from "../../layouts/BaseLayout.astro"; export async function getStaticPaths() { const snippets = await getCollection("fragments", ({ data }) => { return data.lang === astroI18n.langCode; }); return snippets.map((snippet) => ({ params: { slug: snippet.slug }, props: { snippet }, })); } const { snippet } = Astro.props; ---