UNPKG

@i18n-pro/vue

Version:

An out-of-the-box, lightweight i18n auto-translation solution for Vue

12 lines (11 loc) 388 B
import { I18nState, SetI18n, Translate } from 'i18n-pro'; export { Langs, I18nState, SetI18n, Translate } from 'i18n-pro'; import type { App, Ref } from 'vue'; export declare function createI18n(props: I18nState & { with$?: boolean; }): (app: App) => void; export declare function useI18n(): { t: Ref<Translate>; setI18n: SetI18n; i18nState: Ref<I18nState>; };