UNPKG

@minto-ai/mt-ui

Version:

UI组件库

11 lines (10 loc) 390 B
import { ComputedRef } from 'vue'; import { Language } from '../../locale'; export type TranslatorOption = Record<string, string | number>; export type Translator = (path: string, option?: TranslatorOption) => string; export interface LocaleContext { locale: ComputedRef<Language>; lang: ComputedRef<string>; t: Translator; } export declare function useLocale(): LocaleContext;