1.0.1-beta • Published 5 years ago

vue-i18n-file v1.0.1-beta

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-i18n-file

This library is a command line interface that allows you to manage i18n translations contained in vuejs components seen in a single file json or yaml.

You can generate , merge or replace translation and see differences in translation keys into vue components.

Installation

npm install vue-i18n-file

File format

{
  "src/components/Hello.vue": {
    "en": {
      "hello": "Hello"
    },
    "fr": {
      "hello": "Bonjour"
    }
  }
}
}

Usage

####Generate

The generated file contains all translations in vue components found in the selected directories

vue-i18n-file generate

####merge

If you need to merge existing translations with vue-i18n-file generated file you can use this option

vue-i18n-file merge

####replace

This option allows you to replace translations in vue components with those in the file

vue-i18n-file replace

####diff

allows you to see the difference between the translations in vue components and the file

vue-i18n-file diff

License

MIT.