Skip to content

cannot work multiple i18n custom blocks #12

@kazupon

Description

@kazupon

Codes

src/Greeting.vue:

<template>
  ...
</template>

<script>
...
</script>

<style>
...
</style>

<i18n>
{
  "ja": {
     "good_morning": "おはよう"
   }
}
</i18n>

<i18n>
{
  "ja": {
     "good_evening": "こんばんわ"
   }
}
</i18n>

reproduction step

vue-i18n-locale-message squeeze -t=./src
vue-i18n-locale-message infuse -t=./src -m=./messages.json

What is expected?

<template>
  ...
</template>

<script>
...
</script>

<style>
...
</style>

<i18n>
{
  "ja": {
     "good_morning": "おはよう"
   }
}
</i18n>

<i18n>
{
  "ja": {
     "good_evening": "こんばんわ"
   }
}
</i18n>

What is actually happening?

<template>
  ...
</template>

<script>
...
</script>

<style>
...
</style>

<i18n>
{
  "ja": {
     "good_evening": "こんばんわ"
   }
}
</i18n>

<i18n>
{
  "ja": {
     "good_evening": "こんばんわ"
   }
}
</i18n>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions