@sancherie/eslint-plugin-i18n

0.9.0 • Public • Published

eslint-plugin-i18n

Find the missing translations in a project

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-translation:

$ npm install @sancherie/eslint-plugin-i18n --save-dev

Usage

Add @sancherie/eslint-plugin-i18n to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@sancherie/i18n"
    ]
}

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

{
    "rules": {
        "@sancherie/i18n/missing-translation": ["warn", {
            "locales": "fr",
            "localesDir": "/locales"
        }]
    }
}

Supported Rules

Package Sidebar

Install

npm i @sancherie/eslint-plugin-i18n

Weekly Downloads

2

Version

0.9.0

License

ISC

Unpacked Size

17.8 kB

Total Files

12

Last publish

Collaborators

  • sancherie