--- import { t, localePath, getLocaleLabel, type Locale } from '../i18n/utils'; interface Props { locale: Locale; } const { locale } = Astro.props; const currentPath = Astro.url.pathname.replace(new RegExp(`^/(zh|zh_Hant|en)`), ''); const nav = t(locale, 'nav'); const footer = t(locale, 'footer'); const otherLocales: Locale[] = (['zh', 'zh_Hant', 'en'] as Locale[]).filter((l) => l !== locale); ---
MeiYao {footer.brandName}
{getLocaleLabel(locale)}
{otherLocales.map((l) => ( {getLocaleLabel(l)} ))}
{nav.getStarted}