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

14 lines
348 B
TypeScript
Raw Normal View History

2024-06-02 12:47:50 +00:00
import type { SupportedLanguagesType } 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-02 12:47:50 +00:00
defaultLocale?: SupportedLanguagesType;
2024-05-19 13:20:42 +00:00
}
2024-06-02 12:47:50 +00:00
export type { ImportLocaleFn, LocaleSetupOptions, SupportedLanguagesType };