0.0.3 • Published 3 years ago

eslint-plugin-i18nlint v0.0.3

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

Build Status Coverage Status Commitizen friendly

eslint-plugin-i18nlint

A tool for helping you find and manage missing and unused translations

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-i18nlint:

$ npm install eslint-plugin-i18nlint --save-dev

Usage

Add i18nlint to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "i18nlint"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "i18nlint/rule-name": 2
    }
}

Supported Rules

  • i18nlint/chinese-should-be-translated: Enforces translating for Chinese