{"_id":"eslint-plugin-i18n-text","_rev":"12-9839b5d9e0d75ad5923ad920be0f232a","name":"eslint-plugin-i18n-text","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.1":{"name":"eslint-plugin-i18n-text","version":"0.1.1","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"David Graham"},"license":"MIT","_id":"eslint-plugin-i18n-text@0.1.1","maintainers":[{"name":"dgraham","email":"david.malcom.graham@gmail.com"}],"homepage":"https://github.com/dgraham/eslint-plugin-i18n-text#readme","bugs":{"url":"https://github.com/dgraham/eslint-plugin-i18n-text/issues"},"dist":{"shasum":"4f5aa51d0468044b25c7356a358ff342a24ab225","tarball":"https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-0.1.1.tgz","integrity":"sha512-aLj/y0ZA4dimEvZAQ/T3sEX8kga6rTrwpNppRyZxEkc7IJyxMkqceH6gA0AH6T86fRHXmdvUubB5dvq0bMRpnw==","signatures":[{"sig":"MEUCIC22F62WP2j6Xvnx53iqml87szeoRwbESqoU7+Oyrq7uAiEA0waxfRQmCYkM7nfg3zYHDN2AlYZHXOft+Vr/WjvYfc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"3b822210b23e46b8d1d85b53a2a02e6575173750","scripts":{"test":"mocha --reporter dot tests/","pretest":"eslint ."},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"repository":{"url":"git+https://github.com/dgraham/eslint-plugin-i18n-text.git","type":"git"},"_npmVersion":"5.6.0","description":"Disallow English text in string literals","directories":{},"_nodeVersion":"9.3.0","devDependencies":{"mocha":"^4.0.1","eslint":"^4.12.1","prettier":"^1.9.1","eslint-plugin-prettier":"^2.3.1"},"peerDependencies":{"eslint":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-i18n-text-0.1.1.tgz_1515201304661_0.45933560747653246","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"eslint-plugin-i18n-text","version":"0.2.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"David Graham"},"license":"MIT","_id":"eslint-plugin-i18n-text@0.2.0","maintainers":[{"name":"josh","email":"josh@joshpeek.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"muan","email":"me@muanchiou.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"}],"homepage":"https://github.com/dgraham/eslint-plugin-i18n-text#readme","bugs":{"url":"https://github.com/dgraham/eslint-plugin-i18n-text/issues"},"dist":{"shasum":"1b2dc4fd5b187abf4ef5bbac0d03a8aea0deb1b4","tarball":"https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-0.2.0.tgz","integrity":"sha512-zuvgxHuqiISXDJY72WbAVnJlpDY7PItX2wpH1Lne6zr9LdX3ITQI96Wf/7u/Wx5BQjND0EX0LgO4ndGtceojCQ==","signatures":[{"sig":"MEUCIQCBcy5+L5l9LVrueCXSdG94Y101GABMOoraSdjIw0f8TgIgJ609pcMAsnpn79VW0zqX+sGCzdJywBq3TRAMsIEKdLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"773c99ffcbe1c0ad7feec90266e3b5a574ddde9a","scripts":{"test":"mocha --reporter dot tests/","pretest":"eslint ."},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"repository":{"url":"git+https://github.com/dgraham/eslint-plugin-i18n-text.git","type":"git"},"_npmVersion":"5.6.0","description":"Disallow English text in string literals","directories":{},"_nodeVersion":"9.3.0","devDependencies":{"mocha":"^4.0.1","eslint":"^4.12.1","prettier":"^1.9.1","eslint-plugin-prettier":"^2.3.1"},"peerDependencies":{"eslint":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-i18n-text-0.2.0.tgz_1515439850608_0.7145967294927686","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"eslint-plugin-i18n-text","version":"1.0.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"David Graham"},"license":"MIT","_id":"eslint-plugin-i18n-text@1.0.0","maintainers":[{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"muan","email":"me@muanchiou.com"}],"homepage":"https://github.com/dgraham/eslint-plugin-i18n-text#readme","bugs":{"url":"https://github.com/dgraham/eslint-plugin-i18n-text/issues"},"dist":{"shasum":"128259445134fe8eb7cd9caaa84ffb1d8d97d620","tarball":"https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.0.tgz","fileCount":9,"integrity":"sha512-VgS9c45v/GlVa8lodaKHk9sfPg4ua6bagRYUmmw9qQgMvCcjFhVCXqd85j64ejUYEvnDShAecuQuXizV0sO5Ug==","signatures":[{"sig":"MEQCICCYT90cfmT5XqNDyxau9QCsb6pG5VVTu3RKFwzMvOaAAiBNu7bllVH9Kzz7MHgZ4M21VPTP3pIWnVseYqNtMQ0ynA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXG4jCRA9TVsSAnZWagAANFUP/2RUlS9Vd/xnJOw/o4Y9\n0Kh1BNbGMfV8EjXOZa9Bz/x8Zp7tzgOjGsumLTRXgMcVpKugvnXSRCWiVhdi\nVJI13pHup1ejM3dgljkZoqiC3RCq/TqF0t5X9z33JrcGx9D7RRlNV9MFjQ+N\nHmWNrdrcyhwD/akWAw8omrKNLcxy7oRmBNVPrf1/U9geuNoGB9Tf2tEdHsK6\nwqXQte6dP8qadas9DkwL0sSObEIhditOGB57fqntL+4RogtCZXa2jsiV+kJ1\nEo4cwO/azMDZ0hHLl2qc2qvIgTf/pKU+9+Ar1gkL5WRFQLTeHvO9KD15BidY\nSi7SGJNW7E5diasogp2MubKyKUXJALtz6Px6jvmYuDrL/sZKIUIFhMgal1R0\nVDprrRnVTJ2BTyMQ7RPYszt5uwPhkyCe4L1vNd7nq3A/FoMTHuKTdkXqCUFD\n/hWuHiS3gYbBbI+SyT6apAQIFDMqjTdsSw1yjTfrqTpAWAObMm4Onl12V+jF\nMVjZv78YSfFj7t2oqmhcHxsLL5af529o07i2UBAxdOrG3J6dphGAlW0XcaHP\nKjmSK+rVoyBpLRwMwnAs7UKfQnXlA7s688y8UCrUJb6UmL7Xfw22+oxMiCTq\nFaYpWeVCWU2TpWaBAXUOXmAYTFOQHZ8HRhsnnxkpgBVR7ESLN2vltpmTgsV5\negBv\r\n=HgfU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"723a08e345ad10d82a5e6b9e72d75a76ba7aef3a","scripts":{"test":"mocha --reporter dot tests/","pretest":"eslint ."},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"repository":{"url":"git+https://github.com/dgraham/eslint-plugin-i18n-text.git","type":"git"},"_npmVersion":"6.5.0","description":"Disallow English text in string literals","directories":{},"_nodeVersion":"11.9.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^5.2.0","eslint":"^5.13.0","prettier":"^1.16.4","eslint-plugin-prettier":"^3.0.1"},"peerDependencies":{"eslint":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-i18n-text_1.0.0_1549561379122_0.8831346795725667","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"eslint-plugin-i18n-text","version":"1.0.1","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"David Graham"},"license":"MIT","_id":"eslint-plugin-i18n-text@1.0.1","maintainers":[{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"muan","email":"me@muanchiou.com"}],"homepage":"https://github.com/dgraham/eslint-plugin-i18n-text#readme","bugs":{"url":"https://github.com/dgraham/eslint-plugin-i18n-text/issues"},"dist":{"shasum":"69ce14f9af7d135cbe8114b1b144a57bb83291dc","tarball":"https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz","fileCount":9,"integrity":"sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==","signatures":[{"sig":"MEQCIDkr+UM+Oa14FWLg6mhk2cq9+8t3m9kYdUV7Ze/TYyVuAiAyrt6RXwT5D7LvoBtcqdcCcYaIUi34PHtdBgTjC1gFPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdf8AXCRA9TVsSAnZWagAAZ2IP/R03OxtfYH1vT9U8OL2h\nqHL+wSoWZCm5D5WpKj5Oinh+7d7aoh0SVtKB+LAa7S3fTj2MUgGh5ChXWb6M\njiosy+6t9cAZx1IU1l6nPkIp3bkAX4M7kf7q5gvqKfs6oiDZchke9B58bbXW\n0ZDZdF/WL3iU4iYntuxoZ24+A8HJauFJ5Ku/xOl7F9CPkJqoiXaIFdRSsTmz\n/ughKMab2CchKrobySBZ5aeVGOoSiogpB0u26OgGlh8ZyVB+4VsF0nqWbVtw\nYRihVP/zK81GVOOSDTK+KZV9nqHlhk2PTcJhXmwUASALQra2pGb489ZlsSHK\n+9mFqFA/eaYXvt/0P1R15ZdrhhCiO4SYDPWPjAQayFFH8uk0klljIIJUMbkG\nW/yCaVRxTBhpkjadIifcC1AAxKBq7i8ZuRFuC4PX2xcf5BD5NDiqaIFC5Cpy\nofbGROjjDKrK/Rf2+xN/U4ihCK5XIoEdr7jtCo7lq1Ty68I//RT0Os8qqvz8\nJOX/9fA6LgcecGIakXDppNLM0I9VTQEpA7bLRf6jLspRRtDN1IIZ+G3/EgJ9\nd+yjoK0NH5g/LhcVUgB1EAcgRdG5I10qQ+7+H9gOhvv55YR5FkYPlgsIkvr+\nhZZew+zVU3opdmj6+upO3KLyRD3LI9YQayXBaW7v72DzCFhD8MeBoLgF9l7b\ne4fg\r\n=mQ0s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"af2ba94193e13314895b236a48ed282a10dfd40e","scripts":{"test":"mocha --reporter dot tests/","pretest":"eslint ."},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"repository":{"url":"git+https://github.com/dgraham/eslint-plugin-i18n-text.git","type":"git"},"_npmVersion":"6.11.3","description":"Disallow English text in string literals","directories":{},"_nodeVersion":"12.10.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^6.2.0","eslint":"^6.4.0","prettier":"^1.18.2","eslint-plugin-prettier":"^3.1.0"},"peerDependencies":{"eslint":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-i18n-text_1.0.1_1568653334889_0.7595541063907014","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-01-06T01:15:05.596Z","modified":"2025-12-05T16:53:09.763Z","0.1.1":"2018-01-06T01:15:05.596Z","0.2.0":"2018-01-08T19:30:51.471Z","1.0.0":"2019-02-07T17:42:59.243Z","1.0.1":"2019-09-16T17:02:15.023Z"},"bugs":{"url":"https://github.com/dgraham/eslint-plugin-i18n-text/issues"},"author":{"name":"David Graham"},"license":"MIT","homepage":"https://github.com/dgraham/eslint-plugin-i18n-text#readme","keywords":["eslint","eslintplugin","eslint-plugin"],"repository":{"url":"git+https://github.com/dgraham/eslint-plugin-i18n-text.git","type":"git"},"description":"Disallow English text in string literals","maintainers":[{"email":"josh@joshpeek.com","name":"josh"},{"email":"me@muanchiou.com","name":"muan"},{"email":"david.malcom.graham@gmail.com","name":"dgraham"}],"readme":"# eslint-plugin-i18n-text\n\nDisallow English text in string literals.\n\nEmbedding messages in JavaScript files prevents them from being translated into\nother languages. An alternative is to embed the translated text in the markup\nand find it with JavaScript.\n\n```html\n<div class=\"js-message\" data-success-message=\"It works!\">…</div>\n```\n\n```js\nconst el = document.querySelector('.js-message')\nel.textContent = el.getAttribute('data-success-message')\n```\n\nThis pattern allows the web framework that's generating the markup to use\nits translation library to insert the appropriate translated text.\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm install eslint --save-dev\n```\n\nNext, install `eslint-plugin-i18n-text`:\n\n```\n$ npm install eslint-plugin-i18n-text --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-i18n-text` globally.\n\n## Usage\n\nAdd `i18n-text` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\n    \"i18n-text\"\n  ],\n  \"rules\": {\n    \"i18n-text/no-en\": 2\n  }\n}\n```\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","readmeFilename":"README.md"}