eslint-plugin-i18n-text weekly downloads statistics
By dgraham (2 listings) · npm · ESLint plugins
Disallow English text in string literals
eslint-plugin-i18n-text has 83,319 recorded weekly downloads on npm, a decrease of 43.3% over the past 30 days, ranking #496 of 2,322 tracked listings.
About eslint-plugin-i18n-text
eslint-plugin-i18n-text
Disallow English text in string literals.
Embedding messages in JavaScript files prevents them from being translated into other languages. An alternative is to embed the translated text in the markup and find it with JavaScript.
<div class="js-message" data-success-message="It works!">…</div>
const el = document.querySelector('.js-message')
el.textContent = el.getAttribute('data-success-message')
This pattern allows the web framework that's generating the markup to use its translation library to insert the appropriate translated text.
Installation
You'll first need to install ESLint:
$ npm install eslint --save-dev
Next, install eslint-plugin-i18n-text:
$ npm install eslint-plugin-i18n-text --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-i18n-text globally.
Usage
Add i18n-text to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"i18n-text"
],
"rules": {
"i18n-text/no-en": 2
}
}
Development
npm install
npm test
License
Distributed under the MIT license. See LICENSE for details.
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-i18n-text alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-i18n-text. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.