- A few things are in a "beta" state.
vue-i18n-locale-message
is deprecated in favor of@intlify/cli
but the equivalent commands for extracting and updating messages are not available yet.- type extraction from local
<i18n>
blocks is planned.
The src
property is not evaluated correctly when using rspack (if does not find an appropriate loader to process the json content). Using vite works as expected.
See dev:rspack
and dev:vite
package scripts.
Also vue-i18n-locale-message squeeze
has a problem with external sources (fails to evaluate the empty local block).
See the (codemod)[?file=codemod-i18n-src-parsing.js] to locally patch the dependency behaviour and ignore <i18n>
blocks with src
attribute.
The content of @intlify/unplugin-vue-i18n/messages
doesn't seem to match it's type and doesn't look like it's directly usable with the createI18n
constructor as the @intlify/unplugin-vue-i18n documentation suggests.
Using the global fallback or an explicit scope on the <i18n-t>
tags seems to mess up the evaluation of the used keys for the @intlify/vue-i18n/no-unused-keys
rule and the key will be reported as unused. using only the t()
seems to work fine.
See eslint
package script and eslint config file.