UNPKG

@seemusic/ui-components

Version:

A Vue 3 UI Library. Uses Composable.

14 lines (13 loc) 479 B
import type { Ref, InjectionKey, ComputedRef } from 'vue'; import type { TranslatePair, Language } from '../locales'; type Recordable = Record<string, string | number>; export declare const localeContextKey: InjectionKey<Language>; export declare const useLocale: () => { lang: ComputedRef<string>; localeRef: (Language & Ref<unknown>) | Ref<{ name: string; sop: TranslatePair; }>; t: (path: string, option?: Recordable) => string; }; export {};