0.0.4 • Published 3 years ago

i18n-unused-2 v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.0.4

3 years ago

0.0.3

3 years ago