intlify / vue-cli-plugin-i18n

:globe_with_meridians: Vue CLI plugin to add vue-i18n to your Vue Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<i18n> in SFC not working when executing test with Jest

ChristophWalter opened this issue · comments

As part of my integration tests, I want to use i18n also within my test. I installed the vue plugin like in the production code, but during execution I get the following warnings and no strings are translated:
[vue-i18n] Cannot translate the value of keypath 'xyz'. Use the value of keypath as default.

Is this intended to work? Is there a way of setting up webpack to resolve the i18n blocks also during test execution?