--- import {getCollection} from 'astro:content' import {astroI18n, createGetStaticPaths} from "astro-i18n"; import PageLayout from "../layouts/PageLayout.astro"; export const getStaticPaths = createGetStaticPaths(async () => { let posts = await getCollection("pages"); return posts.filter(value => value.id.split("/")[0] === astroI18n.locale).map((page) => ({ props: { page }, params: { slug: page.slug } }) ) }) const { page } = Astro.props; const { Content } = await page.render(); ---

{page.data.title}