Analyse all the vue-i18n language files and placeholders of your project.
## :green_book: Table of Contents
1. [Installation](#installation)
2. [Introduction](#introduction)
3. [How to use it?](#how-to-use-it?)
4. [Contribution](#contribution)
5. [Core Team](#core-team)
6. [License](#license)
Installation
Install with yarn:
```bash
yarn add vue-i18n-extract --dev
```
Install with npm:
```bash
npm install --save-dev vue-i18n-extract
```
Introduction
Vue I18n is a plugin for Vue.js which makes the internationalization and localization very easy.
However, managing and maintaining all the language files and the vue-i18n keys inside a project could be very demanding and **vue-i18n-extract solves this problem**.
Vue-i18n-extract performs a static analysis on a Vue.js project (which uses vue-i18n) and reports the following information:
- list of all the **unused vue-i18n keys** (entries found in the language files but not used in the project)
- list of all the **missing keys** (entries found in the project but not in the language files)
Optionally you can decide to show the output in the console or in a json file.
The missing keys can also be automatically added to the given language files.
How to use it?
Without config
```bash
yarn run vue-i18n-extract report -v -l --languageFiles
```
or
```bash
npm run vue-i18n-extract report -v -l --languageFiles
```
Required options
```
-v, --vueFiles ,
The Vue.js file(s) you want to extract i18n strings from. It can be a path to a folder or to a file. It accepts glob patterns. (ex. *, ?, (pattern|pattern|pattern)
-l, --languageFiles ,
The language file(s) you want to compare your Vue.js file(s) to. It can be a path to a folder or to a file. It accepts glob patterns (ex. *, ?, (pattern|pattern|pattern)
```
Options
```
-o, --output