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

14 lines
333 B
TypeScript
Raw Normal View History

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