Closed last-partizan closed 3 years ago
Thank you for your reporting!
For Vue I18n v9, You need to use @intlify/vue-i18n-loader@next
.
https://github.com/intlify/vue-i18n-loader#cd-installation
Could you re-try about it?
@kazupon yes, it works with @next
version.
Is v9 compatible with vue-2?
For now i just used yaml-loader to import this file, but if Vue I18n v9
is compatible with vue-2, i'll try to upgrade.
Vue I18n v9 has several breaking changes to support Vue 3, but other than that, the I/F keep almost compatible. You can check about breaking change. https://vue-i18n.intlify.dev/guide/migration/breaking.html#apis
Thank you.
I'm trying to import yml file using vue-i18n-loader, but it tries to load it like json, and fails.
I'm using webpack-4, with following config from readme:
When i try to import yml file, like this:
If fails with following message:
I used debugger to figure out what is happening, and problem is in
this.resourceQuery
, it's empty string. So yml is treatead as json.Here is minimal reproduction: https://github.com/last-partizan/vue-i18n-loader-bug
Is there error in my configuration, or is this really a bug?