import type { SupportedLanguagesType } from '@vben-core/typings'; type ImportLocaleFn = () => Promise<{ default: Record }>; type LoadMessageFn = ( lang: SupportedLanguagesType, ) => Promise>; interface LocaleSetupOptions { /** * Default language * @default zh-CN */ defaultLocale?: SupportedLanguagesType; /** * Load message function * @param lang * @returns */ loadMessages?: LoadMessageFn; /** * Whether to warn when the key is not found */ missingWarn?: boolean; } export type { ImportLocaleFn, LoadMessageFn, LocaleSetupOptions, SupportedLanguagesType, };