intlify / vue-i18n

Vue I18n for Vue 3
https://vue-i18n.intlify.dev/
MIT License
2.13k stars 327 forks source link

Hierarchical locale messages under petite-vue-i18n are not working #1965

Open maxfrees opened 1 week ago

maxfrees commented 1 week ago

Reporting a bug?

Hierarchical locale messages under petite-vue-i18n are not working

Expected behavior

Hierarchical locale messages under petite-vue-i18n are not working

Reproduction

https://stackblitz.com/edit/vitejs-vite-gy19pc?file=src%2Fmain.ts

ref https://github.com/intlify/vue-i18n/issues/1962

System Info

windows

Screenshot

No response

Additional context

No response

Validations

kazupon commented 1 week ago

Thank you for your reporting!

I've just fixed this issue. You can try to install vue-i18n v10.0.3 and You need to install @intlify/unplugin-vue-i18n v5.2 and module option setting See the docs https://vue-i18n.intlify.dev/guide/advanced/lite#setting-bundler-plugin

maxfrees commented 1 week ago

It will probably be a lot less than vue-i18n, because petite-vue-i18n need to install @intlify/unplugin-vue-i18n and @intlify/core separately, we need to evaluate it

maxfrees commented 1 week ago

Now it looks a bit cumbersome, in addition to the need to install petite-vue-i18n, you also need @intlify/unplugin-vue-i18n and @intlify/core-base