i18n-unused-2
v0.0.4
Published
Tool to find, analyze, sync, update and remove unused and missed i18n translations in your JavaScript project
Downloads
1
Readme
i18n-unused
Tool to find, analyze, sync, update and remove unused and missed i18n translations in your JavaScript project.
Installation
With npm:
npm install --save-dev i18n-unused
With yarn:
yarn add --dev i18n-unused
Configuration
Add config i18n-unused.config.js
to your root folder:
module.exports = {
extensions: [], // array of files extensions, like ['js', 'ts', 'vue']
localesExtensions: [], // array of extensions of locales files, like ['js', 'json']
srcPath: 'src', // path where analyze files
localesPath: 'src/locales' // path, where plased locales files
};
Usage
Get help
i18n-unused -h
Display unused translations:
i18n-unused display-unused
Sync translations:
i18n-unused sync en es
License
MIT License. Maxim Vishnevsky