Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using vue-i18n-loader with karma #4

Closed
Korri opened this issue May 19, 2017 · 3 comments
Closed

Using vue-i18n-loader with karma #4

Korri opened this issue May 19, 2017 · 3 comments

Comments

@Korri
Copy link

Korri commented May 19, 2017

I have set my .vue loader properly, and it works properly on chrome, but when I run my karma unit test suite (which uses the same web-pack config with a few changes), I get the following message for all my translations:

[vue-i18n] Cannot translate the value of keypath 'example_key'. Use the value of keypath as default.

Is there something that needs to be done in order to have this plugin work with karma-webpack?

@kazupon
Copy link
Member

kazupon commented May 22, 2017

Thank you for your reporting!

Can you provide minimum reproduction repo please?

@Korri
Copy link
Author

Korri commented May 30, 2017

Here I created an basic project using vue init webpack and reproduced the issue.

Repository is here: https://github.com/Korri/vue-i18n-issue-demo

It works on the dev server npm run dev
but fails in the unit test npm run unit

@kazupon
Copy link
Member

kazupon commented Jun 3, 2017

Thank you for your repo!

This issues is bug of vue-i18n.
For this reason, closed.

@kazupon kazupon closed this as completed Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants