intlify / vue-cli-plugin-i18n

:globe_with_meridians: Vue CLI plugin to add vue-i18n to your Vue Project
MIT License
196 stars 41 forks source link

Bug report #249

Closed ATLANT-Z closed 2 years ago

ATLANT-Z commented 2 years ago

When i translating with the help of an automatic utility, the value of one field took on the value "test@gmail.com".

Which led to the error.

in ./src/locales/ru.json
Syntax Error: Final loader (./node_modules/@intlify/vue-i18n-loader/lib/index.js) didn't return a Buffer or String
 @ ./src/locales sync [A-Za-z0-9-_,\s]+\.json$/

If we remove the @, everything works.

kazupon commented 2 years ago

Thank you for your reporting! Sorry, lately my reply.

If you use vue-i18n-next (vue-i18n@v9.x), you need to use literal interpolation related issue: https://github.com/intlify/bundle-tools/issues/53