All Projects → chejen → eslint-plugin-i18n

chejen / eslint-plugin-i18n

Licence: MIT license
ESLint rules to find out the texts and messages not internationalized in the project.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

NPM License NPM Version NPM Downloads Ubuntu CI Status Windows CI Status Coverage Status

eslint-plugin-i18n

ESLint rules for internationalization.

Installation

Install ESLint as a dev-dependency:

$ npm install --save-dev eslint

Install eslint-plugin-i18n as a dev-dependency:

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

Configuration

Add plugins section to your .eslintrc and specify eslint-plugin-i18n as a plugin:

{
  "plugins": [
    "i18n"
  ]
}

Finally, enable the rules that you would like to use.

{
  "rules": {
    "i18n/no-chinese-character": 1,
    "i18n/no-greek-character": 1,
    "i18n/no-japanese-character": 1,
    "i18n/no-korean-character": 1,
    "i18n/no-russian-character": 1,
    "i18n/no-thai-character": 1
  }
}

List of supported rules

License

eslint-plugin-i18n is licensed under the MIT License.

Changelog

v2.1.0 - June 17, 2021

  • Added rule options to support identifier linting.
  • Dropped the support of node < 12 for development environment (due to lint-staged and mocha)

v2.0.0 - July 4, 2020

  • Dropped support for node < 10
  • Added JSX support
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].