--- import { getI18n } from "src/i18n/i18n"; import Button from "./Button.astro"; interface Props { href: string; filename: string; } const { href, filename } = Astro.props; const { t } = await getI18n(Astro.locals.currentLocale); --- {/* ------------------------------------------- HTML ------------------------------------------- */}