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

src path of i18n blocks is ignored for squeezing #268

Open
manniL opened this issue Aug 8, 2023 · 0 comments
Open

src path of i18n blocks is ignored for squeezing #268

manniL opened this issue Aug 8, 2023 · 0 comments

Comments

@manniL
Copy link

manniL commented Aug 8, 2023

Code

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**

  1. 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 like i18n-ally not recognize linked JSON files.

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

1 participant