admin-vben/packages/locales/src/typing.ts

14 lines
321 B
TypeScript
Raw Normal View History

2024-05-19 13:20:42 +00:00
import type { SupportLocale } from '@vben-core/typings';
type ImportLocaleFn = () => Promise<{ default: Record<string, string> }>;
interface LocaleSetupOptions {
/**
* Default language
* @default zh-CN
*/
defaultLocale?: SupportLocale;
}
export type { ImportLocaleFn, LocaleSetupOptions, SupportLocale };