marhali / easy-i18n

This is a IntelliJ IDE based plugin for internationalization. Supports the most common translation file types.
MIT License
87 stars 27 forks source link

Support vue custom blocks #433

Open KaelWD opened 2 months ago

KaelWD commented 2 months ago

vue-i18n supports either one block with all languages or a block for each language with a locale attribute.

<script></script>
<template></template>
<i18n>
{
  "en": {
    "hello": "hello world!"
  },
  "ja": {
    "hello": "こんにちは、世界!"
  }
}
</i18n>
<script></script>
<template></template>
<i18n locale="en">
{
  "hello": "hello world!"
}
</i18n>
<i18n locale="ja">
{
  "hello": "こんにちは、世界!"
}
</i18n>