--- import Footer from '$components/Footer.astro'; import Navbar from '$components/Navbar/Navbar.astro'; import translate from '$i18n/translate'; import site from '$i18n/translations/site'; import getLocaleFromPath from '$lib/getLocaleFromPath'; interface Props { title: string; } const { title } = Astro.props; const locale = getLocaleFromPath(Astro.url.pathname); const t = translate(locale); --- {title} | {t(site, { key: 'title' })}