{"_id":"@naturacosmeticos/eslint-plugin-i18n-checker","_rev":"27-3fcddd61f257a8d53423098325616e48","name":"@naturacosmeticos/eslint-plugin-i18n-checker","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@naturacosmeticos/eslint-plugin-i18n-checker","version":"1.0.0","author":{"name":"Natura Cosméticos","email":"TDDAArquitetura@natura.net"},"main":"index.js","description":"Helps you identify what locales keys are not included in your locales files","repository":{"type":"git","url":"git+ssh://git@github.com/natura-cosmeticos/eslint-plugin-i18n-checker.git"},"dependencies":{"lodash":"^4.17.11"},"devDependencies":{"chai":"^4.2.0","eslint":"^5.7.0","@naturacosmeticos/eslint-config-natura":"^1.0.0","eslint-plugin-import":"^2.14.0","mocha":"^5.2.0"},"scripts":{"lint":"eslint src/ test/","lint:fix":"eslint --fix src/ test/","test":"mocha","test:watch":"mocha -w"},"contributors":[{"name":"Daniel Arthaud","email":"daniel@vizir.com.br"},{"name":"Fabrício Campos","email":"fabricio@vizir.com.br"}],"homepage":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker#readme","bugs":{"url":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker/issues"},"keywords":["eslint","eslint-config","nodejs","style-guide"],"license":"MIT","gitHead":"e49dc2cc2cc75bf3024e1a3b489d63aa793aed2c","_id":"@naturacosmeticos/eslint-plugin-i18n-checker@1.0.0","_npmVersion":"6.4.0","_nodeVersion":"10.4.1","_npmUser":{"name":"fabricioffc","email":"ffc.fabricio@gmail.com"},"dist":{"integrity":"sha512-A4GFexKiCdXLUrPJVY5DEmL03QgzFZNjeIX689+UdD7SMKWdIXzGepoaHKssZKeP8wDp20JL/n/dvzUGgkVswg==","shasum":"c3b4af705ac61a1ed0fe567923d5c4edd64741ac","tarball":"https://registry.npmjs.org/@naturacosmeticos/eslint-plugin-i18n-checker/-/eslint-plugin-i18n-checker-1.0.0.tgz","fileCount":17,"unpackedSize":66416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2QmmCRA9TVsSAnZWagAASuoP+QDb2OBiCp34N90uOs2G\nIEbG/oKKltx12v/A7xs6VKE2MmSzkNzg1lZiYH64UoelHqrynwSmJAS9BTEG\nYU3RHkmgVmcDlWSx/5VPoPekOnIVr6KLU81rFudbDDjMfRqmgeSdTdcwtIrB\n15CSJu5WyvnjY211vHehz+mKHQR25s4JkiItr5/lv5l2vdQp3pKbubdxJmPh\nXo+mvgaGf/s9ZBYYK75Fe6cwVEFi8AQ1XwSnd4/+ReOuAWpK/5RcUYKQjWt3\no47bXbs2AsTKjltSI5C2HxRE2VrgZmYUBaL+8fJb5xwy+C0E3CfP1QowULi+\nEyFpWP11tIEz4xXuCPVDMzSw53/TYMFOoPEFsVJBY/DvGet7u1zx5/maA2qP\nyl3Sb8U8LrYsul2ZeTdwirk1miqtUWrReqICwLFBrqImXBsJ29ndYhSA/8Z2\npSF7ouvglkgDDjKkV2qobvJ2S2hwm3mZWWPhFgCFfw+Pob9Fd7LulMSHT3Lt\nx90nm4L3fM/uRaTVskNpCK9Cr/Wyf/bBzLCwhNu7ZfKIZOOeBdTsstEcT9mc\nEDRM12bWV1s6ihA0ZCY5y2JSRZCxgoBY/oNsDLKmAWvNzMtqEzXVhK77zTdW\npC+PFMQ4WGDFNfJ+Kyy4ytXCOSPWo+Ga4bhLF8J2we4jWgBnwjmaW+4uUKFj\nTpRG\r\n=u70b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAmOQaubLSwZYO7P8ZO4KEg3Q911pR39qUuisn7czbAgIhAPM0dg5lcpwM6t5wT0EROO8AFm+WxBAkacIIhFo+Sg/J"}]},"maintainers":[{"name":"darthaud","email":"arthaud@gmail.com"},{"name":"fabricioffc","email":"ffc.fabricio@gmail.com"},{"name":"handrus","email":"handrus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-i18n-checker_1.0.0_1540950437700_0.5031706492175867"},"_hasShrinkwrap":false},"1.0.1":{"name":"@naturacosmeticos/eslint-plugin-i18n-checker","version":"1.0.1","author":{"name":"Natura Cosméticos","email":"TDDAArquitetura@natura.net"},"main":"index.js","description":"Helps you identify what locales keys are not included in your locales files","repository":{"type":"git","url":"git+ssh://git@github.com/natura-cosmeticos/eslint-plugin-i18n-checker.git"},"dependencies":{"lodash":"^4.17.11"},"devDependencies":{"chai":"^4.2.0","eslint":"^5.7.0","@naturacosmeticos/eslint-config-natura":"^1.0.0","eslint-plugin-import":"^2.14.0","mocha":"^5.2.0"},"scripts":{"lint":"eslint src/ test/","lint:fix":"eslint --fix src/ test/","test":"mocha","test:watch":"mocha -w"},"contributors":[{"name":"Daniel Arthaud","email":"daniel@vizir.com.br"},{"name":"Fabrício Campos","email":"fabricio@vizir.com.br"}],"homepage":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker#readme","bugs":{"url":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker/issues"},"keywords":["eslint","eslint-config","nodejs","style-guide"],"license":"MIT","gitHead":"f1d8dd176003a0a24b49a27caffcf8237501222b","_id":"@naturacosmeticos/eslint-plugin-i18n-checker@1.0.1","_npmVersion":"6.4.0","_nodeVersion":"10.4.1","_npmUser":{"name":"fabricioffc","email":"ffc.fabricio@gmail.com"},"dist":{"integrity":"sha512-2HhWTfMQ1jQTy12uXjqoX7XNEbiQpbMfCUj3dyG78GHamjGkb7cZG1yQvsahverIJmfp9fjGzXRo/u/QXSGvuA==","shasum":"a1b42be7fccef49c0bf5a712fb43e844d0841a97","tarball":"https://registry.npmjs.org/@naturacosmeticos/eslint-plugin-i18n-checker/-/eslint-plugin-i18n-checker-1.0.1.tgz","fileCount":17,"unpackedSize":66553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4LTJCRA9TVsSAnZWagAAsbcP/2nx7hrJ1siQQ5KiO9qA\nhQa+DW/MPuvzwEt33aWJKtVutTE/MlfSmiTlpPRAXrZib7uI+qiAg+ok+Xi/\na5XQIJr8/pTzAqXMCm4lRo6mOAHNGqJYmK0Wv0PLSp0pXCs3UHNIurOsYqhF\nZdlfc39iuWzNeCQjelEB5syI822oEtG+qGxbWm0cHkxhOQdQLVxzGw6NfGIr\nCeVZtCWslKo+s6fhfnsWTvDkiu3bMevc3QLLKlnG/HQjAPMF8jWV1X6NVvqG\ncCcHY0ubcORae0oxlHjqp7A/XuJU3REFlxONl6pPz4jTBdJbefnKEbowfMlY\nDHa/oWjSYwn+Z92PnnkrEergv9nrp++CPe1pvpISe3OCiqxnTsHfIVr8ZSvU\n4mjN//HSS6LlwsfFPQrZipEMtOWlmvc3B6c1VswNw3K6fFKnG5zLIVPlhIZ1\ndIiljzt4UAmO2Ffes+FgwBYucOTve/h6XmiemDQyMFBuGRY5rS4Mn0CMm4xu\neFX2aClCLD50E4ufhU/Cl25waqxQ7vEDQ6B9C6csx70+unQepl7FRgtsQRDs\ncBao8FXEB4PfRGwW31BYuGjVGOaq2LmyuLa4hDAr/nP+aKlPN736kfVIYETC\nSsOYvYfQaPSjd1uRgde4YcEYJ2geO0XxhcHyeaveo19868PF1cH4ttRcz+iY\nfTsQ\r\n=/3yz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTH2mz4NEOhY2Pz0xbdOAg/QgXQp2deattVITsTpJJmAiAX5cKQA1cXwAcKdZbaSSatdjX3fBKMFdwZZT8sZ+o8xg=="}]},"maintainers":[{"name":"darthaud","email":"arthaud@gmail.com"},{"name":"fabricioffc","email":"ffc.fabricio@gmail.com"},{"name":"handrus","email":"handrus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-i18n-checker_1.0.1_1541453000229_0.8308103494817953"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-31T01:47:17.542Z","1.0.0":"2018-10-31T01:47:17.852Z","modified":"2024-02-19T17:01:26.446Z","1.0.1":"2018-11-05T21:23:20.771Z"},"maintainers":[{"email":"marcelofabricanti@hotmail.com","name":"marcelofabricanti"},{"email":"designsystem@natura.net","name":"designsystemnatura"},{"email":"mport.dev@gmail.com","name":"mukaportes"},{"email":"vicentelyrio@gmail.com","name":"vicentelyrio"},{"email":"matheusrobert8@gmail.com","name":"robert-lichtnow"},{"email":"douglasofreitas@gmail.com","name":"douglasofreitas"},{"email":"npm@jimmyandrade.com","name":"jimmyandrade"},{"email":"lauralucca@gmail.com","name":"lauralucca"},{"email":"marcelsaito@gmail.com","name":"marcelsaitonatura"},{"email":"eliisrael@gmail.com","name":"eliisrael"}],"description":"Helps you identify what locales keys are not included in your locales files","homepage":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker#readme","keywords":["eslint","eslint-config","nodejs","style-guide"],"repository":{"type":"git","url":"git+ssh://git@github.com/natura-cosmeticos/eslint-plugin-i18n-checker.git"},"contributors":[{"name":"Daniel Arthaud","email":"daniel@vizir.com.br"},{"name":"Fabrício Campos","email":"fabricio@vizir.com.br"}],"author":{"name":"Natura Cosméticos","email":"TDDAArquitetura@natura.net"},"bugs":{"url":"https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker/issues"},"license":"MIT","readme":"# eslint-plugin-i18n-checker\n[![Known Vulnerabilities](https://snyk.io/test/github/natura-cosmeticos/eslint-plugin-i18n-checker/badge.svg)](https://snyk.io/test/github/natura-cosmeticos/eslint-plugin-i18n-checker)\n[![Build Status](https://api.travis-ci.org/natura-cosmeticos/eslint-plugin-i18n-checker.svg?branch=master)](https://travis-ci.org/natura-cosmeticos/eslint-plugin-i18n-checker)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9ee01fcbab76443393f4e01d9711cf6f)](https://www.codacy.com/app/fabricioffc/eslint-plugin-i18n-checker?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=natura-cosmeticos/eslint-plugin-i18n-checker&amp;utm_campaign=Badge_Grade)\n\nThis eslint plugin helps you identify what locales keys are not included in your locales files.\n\nConsidering the follow scenario:\n\n```\n--locales/\n----en-us.json\n----es-pe.json\n----pt-br.json\n--src/\n-----components/\n-------header.js\n```\n\nIn your `header.js` you have a call to your `i18n` function to get the localized value of the string *logout*: `translate('logout')`\n\nThe `i18n-checker` will verify if the `logout` is defined in each locale file you have.\n\n# How to use\n\n## Installation\n\n```bash\nnpm i --save-dev '@naturacosmeticos/eslint-plugin-i18n-checker'\n\nyarn add -D '@naturacosmeticos/eslint-plugin-i18n-checker'\n```\n\n## Configuration\n\nIn your eslintrc file you need to add `@naturacosmeticos/i18n-checker` in the `plugins` section.\n\n### Options\n\nYou can configure the following options:\n\n* **localesPath** - *string* - your locales relative path (*default is `/locales/`*)\n* **messagesBasePath** - *string* - if your locales files has a base path you can pass it (*default is undefined*)\n* **translationFunctionName** - *string* - the name of your translation function (*default is `translate`*)\n\nExample:\n\n```\n\"@naturacosmeticos/i18n-checker/path-in-locales\": ['error',\n  {\n    localesPath: 'public/locales/',\n    messagesBasePath: 'translations',\n    translationFunctionName: 't'\n  }\n]\n```\n\n# Contributing\n\nYou can contribute submitting [pull requests](https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker/pulls).\n\n## Setup\n\nInstall the dependencies running `yarn` in the project folder.\n\n## Lint\n\nJust run `yarn lint`\n\n## Tests\n\nYou can run the following commands:\n\n* `yarn test`\n* `yarn test:watch`\n","readmeFilename":"README.md"}