Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

fix:can't access property _t, i18n is undefined #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useI18n(): Composer {
const vm =
instance?.proxy ||
(instance as unknown as InstanceType<VueConstructor>) ||
new Vue({})
new Vue({i18n})

const locale = computed({
get() {
Expand Down