--- import { useT } from "@/i18n/translations"; import type { Lang } from "@/i18n/translations"; interface Props { text: string; label?: string; } const { text, label } = Astro.props; const lang = (Astro.currentLocale as Lang) || "en"; const T = useT(lang); ---