i18n-unused-2
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i i18n-unused-2

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

54.2 kB

Total Files

31

Last publish

Collaborators

  • adrielklein