UNPKG

vue-i18n-composable

Version:
16 lines (13 loc) 469 B
import { WritableComputedRef } from 'vue'; import VueI18n from 'vue-i18n'; declare function createI18n(options?: VueI18n.I18nOptions): VueI18n; interface Composer { locale: WritableComputedRef<string>; t: typeof VueI18n.prototype.t; tc: typeof VueI18n.prototype.tc; te: typeof VueI18n.prototype.te; d: typeof VueI18n.prototype.d; n: typeof VueI18n.prototype.n; } declare function useI18n(): Composer; export { Composer, createI18n, useI18n };