--- // biome-ignore-all lint/correctness/noUnusedImports: Astro template consumes component imports. // biome-ignore-all lint/correctness/noUnusedVariables: Astro template consumes frontmatter values. // apps/landing/src/components/LanguageSwitcher.astro import { LANDING_LOCALES, nativeName, t } from "@/i18n"; import { localizeHref } from "@/lib/i18n-page"; interface Props { locale: string; path: string; // the un-prefixed page path, e.g. "/faq" } const { locale, path } = Astro.props; const options = LANDING_LOCALES.map((code) => ({ code, label: nativeName(code), href: localizeHref(code, path), })); ---