export type LocaleCode = 'zh-CN' | 'zh-TW' | 'en'

export const SUPPORTED_LOCALES: { value: LocaleCode; labelKey: string }[] = [
  { value: 'zh-CN', labelKey: 'settings.localeZhCN' },
  { value: 'zh-TW', labelKey: 'settings.localeZhTW' },
  { value: 'en', labelKey: 'settings.localeEn' },
]

export function isLocaleCode(v: string): v is LocaleCode {
  return v === 'zh-CN' || v === 'zh-TW' || v === 'en'
}
