Open manniL opened 1 year ago
components/test/Greeting.vue
<template> ... </template> <script> ... </script> <i18n locale="de" src="~/components/test/de.json"></i18n>
components/test/de.json
{ "good_morning": "Guten Morgen" }
Reproduction
npx vue-i18n-locale-message squeeze --target=./components/test --output=./messages.json
Error: SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
The src path for i18n blocks is ignored when squeezing messages, making plugins like i18n-ally not recognize linked JSON files.
src
i18n-ally
Code
components/test/Greeting.vue
components/test/de.json
Reproduction
npx vue-i18n-locale-message squeeze --target=./components/test --output=./messages.json
Error:
SyntaxError: Unexpected end of JSON input
The
src
path for i18n blocks is ignored when squeezing messages, making plugins likei18n-ally
not recognize linked JSON files.