import type { LocaleBundle, SiteLocale } from '~/types/locale' export function pickLocale(bundle: LocaleBundle, locale: SiteLocale): T { if (locale === 'zh' && bundle.zh) { return bundle.zh } return bundle.en }