From 2c7d6da531cf2d693531ddd22ca075277c8cf77f Mon Sep 17 00:00:00 2001 From: m9hmood Date: Tue, 9 Aug 2022 23:12:47 +0300 Subject: [PATCH] fix:can't access property _t, i18n is undefined --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7a51f84..e7b092f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,7 +29,7 @@ export function useI18n(): Composer { const vm = instance?.proxy || (instance as unknown as InstanceType) || - new Vue({}) + new Vue({i18n}) const locale = computed({ get() {