typing.ts 348 B

12345678910111213
  1. import type { SupportedLanguagesType } from '@vben-core/typings';
  2. type ImportLocaleFn = () => Promise<{ default: Record<string, string> }>;
  3. interface LocaleSetupOptions {
  4. /**
  5. * Default language
  6. * @default zh-CN
  7. */
  8. defaultLocale?: SupportedLanguagesType;
  9. }
  10. export type { ImportLocaleFn, LocaleSetupOptions, SupportedLanguagesType };