--- import context from 'virtual:starlight/project-context'; import config from 'virtual:starlight/user-config'; import { localizedUrl } from '../utils/localizedUrl'; import Select from './Select.astro'; /** * Get the equivalent of the current page path for the passed locale. */ function localizedPathname(locale: string | undefined): string { return localizedUrl(Astro.url, locale, context.trailingSlash).pathname; } --- { config.isMultilingual && (