Skip to content

src path of i18n blocks is ignored for squeezing #268

Open
@TheAlexLichter

Description

@TheAlexLichter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions