intlify / vue-i18n

Vue I18n for Vue 3

Home Page:https://vue-i18n.intlify.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mutil call for useI18n not work

littleboarx opened this issue · comments

Reporting a bug?

see: https://codesandbox.io/p/sandbox/vue3-i18n-forked-dpjcp4?file=%2Fsrc%2FApp.vue%3A22%2C1

Expected behavior

t1 and t2 should work together

Reproduction

see playground

System Info

there's a front code sandbox

Screenshot

No response

Additional context

No response

Validations

Thank you for your reporting!

vue-i18n doesn’t expect multiple calls to useI18n in the setup lifecycle. Because of the internal use of inject/provie.

Thanks