Closed maxfrees closed 1 month ago
Thank you for your feadback! Would you be able to provide a reproduction ๐
Thank you for your reproduction.
The locale messages of petite-vue-i18n is handled are simple key-value style
Docs said:
The only locale messages that can be handled are simple key-values. if you can handle hierarchical locale messages, you need to customize them using the API
https://vue-i18n.intlify.dev/guide/advanced/lite.html
The locale message of your app is object style hierarchy structure.
If you use hierarchy structure, you have to register resolveValue
with registerMessageResolver
@intlify/core-base
https://vue-i18n.intlify.dev/guide/advanced/lite.html#use-the-same-message-resolver-and-locale-fallbacker-as-vue-i18n
Thanks!
Thank you for your reproduction.
The locale messages of petite-vue-i18n is handled are simple key-value style
Docs said:
The only locale messages that can be handled are simple key-values. if you can handle hierarchical locale messages, you need to customize them using the API
https://vue-i18n.intlify.dev/guide/advanced/lite.html
The locale message of your app is object style hierarchy structure.
If you use hierarchy structure, you have to register
resolveValue
withregisterMessageResolver
@intlify/core-base
https://vue-i18n.intlify.dev/guide/advanced/lite.html#use-the-same-message-resolver-and-locale-fallbacker-as-vue-i18nThanks!
import {
registerMessageResolver, // register the message resolver API
resolveValue, // message resolver of vue-i18n which is used by default
registerLocaleFallbacker, // register the locale fallbacker API
fallbackWithLocaleChain locale fallbacker of vue-i18n which is used by default
} from '@intlify/core-base'
I also use this, but it doesnโt work. Will the size be smaller than vue-i18n after adding @intlify/core-base?
I also use this, but it doesnโt work.
Please open as new issue with reproduction. ๐
Will the size be smaller than vue-i18n after adding @intlify/core-base?
Yes, it is smaller than vue-i18n.
Reporting a bug?
petite-vue-i18n does not support translation in this format
https://stackblitz.com/edit/vitejs-vite-xzgccz
Expected behavior
petite-vue-i18n does not support translation in this format
Reproduction
petite-vue-i18n does not support translation in this format
System Info
Screenshot
No response
Additional context
No response
Validations