--- import { defaultLocale, useTranslations, type Locale } from "../i18n/ui"; import ThemeToggle from "./ThemeToggle.astro"; import LangPicker from "./LangPicker.astro"; interface Props { locale: Locale; path: string; } const { locale, path } = Astro.props; const t = useTranslations(locale); const p = (sub: string) => (locale === defaultLocale ? sub : `/${locale}${sub}`); ---