{"_id":"@code-ninja/i18n-lang-generator","_rev":"4-75afcc294e58d6bc16f11e171167a36e","name":"@code-ninja/i18n-lang-generator","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@code-ninja/i18n-lang-generator","version":"1.0.0","description":"Generate translation files for vue-i18n projects","main":"i18n-lang-generator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"i18n-lang-generator":"i18n-lang-generator.js"},"repository":{"type":"git","url":"git+https://github.com/code-ninja/i18n-lang-generator.git"},"keywords":["i18n","vue","translation","vue-18n"],"author":{"name":"Paulo Marinas"},"license":"MIT","bugs":{"url":"https://github.com/code-ninja/i18n-lang-generator/issues"},"homepage":"https://github.com/code-ninja/i18n-lang-generator#readme","dependencies":{"deep-sort-object":"^1.0.2","glob":"^7.1.4","lodash":"^4.17.15","minimist":"^1.2.0"},"gitHead":"fe782f2d04bc7b00370c94840c7cdea955dd0971","_id":"@code-ninja/i18n-lang-generator@1.0.0","_nodeVersion":"10.14.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-sK4RQoZUrzu1J5pT23H8d6HeA8gyxyjcZHeiyQSA/4c65fs2+az8/I162wFabM6xPLnenOCbiPdVikhAFQGO9Q==","shasum":"ee88a5f39a3cc86f7ee13c871ab6508f878a44b6","tarball":"https://registry.npmjs.org/@code-ninja/i18n-lang-generator/-/i18n-lang-generator-1.0.0.tgz","fileCount":4,"unpackedSize":8007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi2QrCRA9TVsSAnZWagAAsTMP/16c/MmJ/mvCak0zbNEc\novSxkofChcWFqt/3h6WZMV/+ZXfVC4NixWEtb1fXV+g6ZKCu13MOotCeOP/2\nOgimjG6oz+R46CPKCF7WPf/KhSrIhC2UZ6fyBgnYBH7s5sh51iUwgy3ucmkU\niLYe9fo5Gu+M+DJ0s+12xSRlcXNwSwz5D3nAUTSUetKc8tpiWOjEhKzrf0LM\nqgx+9/LFRnDj8hK+WLCJsKLdWX33gRcOgzkPhp7MGcd6FkAhkWJKGcy0hUZ+\nsTzGj5ySu7bNZJHrYk122a8e734Tjwur0iFtvQUGLiMLEA8NcMw60PNMCwWM\nOrOamz4uhxNQCatX8DbECq/85ioVfxtGT9d7026ArxrgBqgRruFtxAKcgR7j\nN94ekky4E/NrhgzcFb7Vo7XjRYeMgyTB6aoIdLzdUngjtCm7LDR34J/j0pyO\nmVYm9yZKaJ5E7w1kADPmLYOsEugMHG6ZwRRVuEdrzn3YOBdYQM100HiditrW\nVcUcfqKT77FS1I8nK8Yz1A3ZVJ4NOr/T9RxlzemDzld7gcC0djyq5/bllpWH\ns7JolDQSH6IpvdQ3fO96IPbZk3dGacAckDdX3g5nFxgJVd6DIy6ZcXUTJ0DS\nnqvJWBPM1QiYU5Z9XuPIqbGXFXCTjgw30ZjS6EgVMWtTqzGOTQCZym+0is6q\n8Wqn\r\n=fcmj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7SlYtNY1Xq+WWYUbFelRq/BWthdqiZFlZzcJzzi2P3AiEAy+54d3/ZrEY0lRFhmhYwPwZxsoEuTvMRX6T3jVA5+RQ="}]},"maintainers":[{"name":"paulopmx","email":"paulo@codeninja.co"}],"_npmUser":{"name":"paulopmx","email":"paulo@codeninja.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-lang-generator_1.0.0_1569416235263_0.4273141724399978"},"_hasShrinkwrap":false},"1.0.1":{"name":"@code-ninja/i18n-lang-generator","version":"1.0.1","description":"Generate translation files for vue-i18n projects","main":"i18n-lang-generator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"i18n-lang-generator":"i18n-lang-generator.js"},"repository":{"type":"git","url":"git+https://github.com/code-ninja/i18n-lang-generator.git"},"keywords":["i18n","vue","translation","vue-18n"],"author":{"name":"Paulo Marinas"},"license":"MIT","bugs":{"url":"https://github.com/code-ninja/i18n-lang-generator/issues"},"homepage":"https://github.com/code-ninja/i18n-lang-generator#readme","dependencies":{"deep-sort-object":"^1.0.2","glob":"^7.1.4","lodash":"^4.17.15","minimist":"^1.2.0"},"gitHead":"ab5a1b7be34d11c8dc389db92242703b975ca939","_id":"@code-ninja/i18n-lang-generator@1.0.1","_nodeVersion":"10.14.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-2uaHo9xg3Pz2++PabrxrDyfwbqDTfn2kQOsmyqb7sNsYo9Z26RUQa51Zmgnmyib5MMZK++oUsGRUXYxmJzLGEg==","shasum":"e8f7bcd8dbd90e6561f59a31462d28856126914f","tarball":"https://registry.npmjs.org/@code-ninja/i18n-lang-generator/-/i18n-lang-generator-1.0.1.tgz","fileCount":4,"unpackedSize":9675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi3RlCRA9TVsSAnZWagAAZuAP/2Kv1VWGSoZ/Z1qW8xz2\n6/ED19RO548grq4o+WrpjxPob3ZrqEYPjX7ZnGzgu3XZPCIp5PFnRukZQpAe\n+Uda5IEY1RnvnglYBux8tzpBIMFyKiM/05zsi9+q02Bnn+K+oNkPkcraQUFn\n9zDWuiJ4OIlgnSu/PvoeC4JOK+xEcJuHX3VE0GP6oaQnu77pLz9v1pFTpGJ1\n0Z9WfRtbWtpSUk9TxM5W+89+hKrFDVuhXjmWb5WZBzHebQzI3RDw8Ei/5sjy\nDvxT2twhhm02AsOmbwlqYbFMNuUtplhNUWGiKpJwrc6tO4ReKNcWgscOhrrv\ncJQMoNxZu6HALH6/LlK95LtbwghmJCzL2gq1pjo7o/gd3Q8qX93RWlfv+ine\n1Bg+JLOiU8IuaZeYUTwqAs+YElo+0H/D6HCWPDkgBQfr3jPuGAx8w+LX01Cl\nPEoqP4NSQXt+p3LloNGSXpcvpLlLOlUkRjfefMwCAaP3ae6PDnkc10KyeWiT\nMifI3RtqeyB6lye6CiThYkwF/aUjDIas9CsSYRT0c0vDGWYHZs3WddQzlI+S\nqyzMjmyR3a7Rs/pHEpFasIHEy4fWpnP5Mz6laBrVmvYoh4OB6vg0mUOgbu7l\nKGD6umWqPIIG0mql8onfNwaL9cYD5JygPcuwqioYs+mQyWAieTWul1BIv3eq\nb/41\r\n=S50F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+mzLVY/f5m1fQaeE6qVapPm9642Xdlkju64xb+b9KcAiAgwJLZzBQRXC0OAdcEVCcNZE/ySYr1xx8vOyl8dWCz/g=="}]},"maintainers":[{"name":"paulopmx","email":"paulo@codeninja.co"}],"_npmUser":{"name":"paulopmx","email":"paulo@codeninja.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-lang-generator_1.0.1_1569420389085_0.11977409748977408"},"_hasShrinkwrap":false},"1.0.2":{"name":"@code-ninja/i18n-lang-generator","version":"1.0.2","description":"Generate translation files for vue-i18n projects","main":"i18n-lang-generator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"i18n-lang-generator":"i18n-lang-generator.js"},"repository":{"type":"git","url":"git+https://github.com/code-ninja/i18n-lang-generator.git"},"keywords":["i18n","vue","translation","vue-18n"],"author":{"name":"Paulo Marinas"},"license":"MIT","bugs":{"url":"https://github.com/code-ninja/i18n-lang-generator/issues"},"homepage":"https://github.com/code-ninja/i18n-lang-generator#readme","dependencies":{"deep-sort-object":"^1.0.2","glob":"^7.1.4","lodash":"^4.17.15","minimist":"^1.2.0"},"gitHead":"a1a0f56140a07f70a6d838ab15f12c1bcaff58ff","_id":"@code-ninja/i18n-lang-generator@1.0.2","_nodeVersion":"10.14.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-pUv3jaXxu5DJmQ1nMxfZJjR2L2/sHQ9rr5uHU2So1ntEtHP0zpd838Xq/w9rYnsuGjAD4ZoT4IPrqM+47Pz9NQ==","shasum":"741f6d9781a61c93af8c30836f03df9c6d0df6b4","tarball":"https://registry.npmjs.org/@code-ninja/i18n-lang-generator/-/i18n-lang-generator-1.0.2.tgz","fileCount":4,"unpackedSize":9380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjKRbCRA9TVsSAnZWagAA21cP/AtxlunIQFIBeeHrXwPM\nywrrCS78hNLsLhkghWjn5rihCbMxoUvg3vWgHO9kWfcrxNXwI0oundATd1f5\nn+NOEwtOjNM16cnbI8s/6xS/VfExSEqNpgWDWdXkhY0miJ2TO7kwzqz2PJ/K\nTn5qVjupSWC/f+0TgqAv0PfFzS31oaNj9QrYqrK2LeeRNjUz8UVDlM4/OQXu\n1JddKzJukVFBPo6dRCsU+4tRN6swisKwGkdZ/+WiDcC1DkkzduiIJxHlMv2S\n2LraLbzhfFR2p1LAPPKve84DtPmk/T9Hc2Y3yuD79dVbvcQYyDFZ7tZ2ZGwb\nr8fmNi0Eys2OtQvYY/C8Y7uBc0mCu2/jzw8GGCGtQgoecy45YFsRxcczVNKr\nZJ0OyGWIkqCPnZVElvaXyWPr+az9sAMBDizyGwHEX3FsTM1qmP5PtDLqcme5\nBB2dyLXzDdZVktoOOj3GyJDn8jjrZU6IFHJe4WzGNcSVxhpjavj9D1e4ZA3x\nIwCKk1omgV4RIXjTAb8cQMXChD00FAV2dLvcgea7Fl8qgN7bVAvLzkbWdzQH\n1QyhN9WVmB4HVI52uAkWjPFVzOrC2hlpdfju+fnNIWlq8JFkEfQGCvEuQPdp\nUSt5qUemBQduCZGPTooyi11usIObGjfi8UbIerUUrK/CkR0Cfp4oQBk40uo9\nrDAW\r\n=8NWr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4XiIMQ8kWZp9rsdt1RJnC/6bJ/yNXuCTUO319ug4ntAiEA9byHonBsQdBC/l/cMD3jROXQMSTrQjEMDnC00RTt3LY="}]},"maintainers":[{"name":"paulopmx","email":"paulo@codeninja.co"}],"_npmUser":{"name":"paulopmx","email":"paulo@codeninja.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-lang-generator_1.0.2_1569498203228_0.9641910206694098"},"_hasShrinkwrap":false},"1.0.3":{"name":"@code-ninja/i18n-lang-generator","version":"1.0.3","description":"Generate translation files for vue-i18n projects","main":"i18n-lang-generator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"eslint --ext .js,.json .","lint:fix":"eslint --fix --ext .js,.json ."},"bin":{"i18n-lang-generator":"i18n-lang-generator.js"},"repository":{"type":"git","url":"git+https://github.com/code-ninja/i18n-lang-generator.git"},"keywords":["i18n","vue","translation","vue-18n"],"author":{"name":"Paulo Marinas"},"license":"MIT","bugs":{"url":"https://github.com/code-ninja/i18n-lang-generator/issues"},"homepage":"https://github.com/code-ninja/i18n-lang-generator#readme","dependencies":{"deep-sort-object":"^1.0.2","glob":"^7.1.4","lodash":"^4.17.15","minimist":"^1.2.0"},"devDependencies":{"eslint":"^6.5.1","eslint-config-prettier":"^6.3.0","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-json":"^1.4.0","eslint-plugin-node":"^10.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","prettier":"^1.18.2"},"gitHead":"fe3d2300ce4346307e66d5fc6707c2f623481ae6","_id":"@code-ninja/i18n-lang-generator@1.0.3","_nodeVersion":"10.14.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-E/nzgjCX7YAbCn1+LMaeQgoFCk2zzxFdH6zPf5iWO/tdXxPlwLoV2mwKNooGYUIdLIHyAlQIexoWOhZ23Da1Lg==","shasum":"4700a44add690a15388860f7ff3f6a209989afc5","tarball":"https://registry.npmjs.org/@code-ninja/i18n-lang-generator/-/i18n-lang-generator-1.0.3.tgz","fileCount":5,"unpackedSize":10936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdltMjCRA9TVsSAnZWagAAgOoP/Rb1+rrpHA9B9Qi5HJjs\npVyVo1wY8ATlDdPprKRDyy4Hq8aMO7P1p/BtBiciZG4d2fmHjrIZ1Zp32J+V\nROtGAjVP9NjZkwpobah8ZW2qgb3PdQ+/e5jaQ6fFIEk6MgFoRSDcfcpGGpIQ\nnITY1gRrMASKV0/RSQKwsYvmC6NW7yNMPW6hh/Kiv6ee+erphO2UWZyh53Y8\nn87fgCXuVekSlHoSXa6OovtG1VlmAuhZQGiWp99Nxsw7YM7gIaAf4wnNMJll\nxCxy3NOPwMJnctooX+P64MHfZ+y+56uM57apJEnBuI9OxO61FWS+UNIIDL7/\nQkGRYQJKW7I+LCEQoMnlc8y31H5b8zHxFkLMayRRQZc3T+7YxN+JWu5NmVJV\nKwx+Lmgo4QiDL2ycD9YSttnmB+RzOG6aeu+whKxJkbTt3md52IN6xOevnPRL\nAjBDPSasgDA+ftSzYg7goHLhNzAf9+Sfpuwq5+SEAgzal2LTydjvcw5jS1CZ\nx6ls0O6/WkdjkER7s72KEYSCwe5GaCBCXqCNsjFf0znKTtkq50FQ1ablf1IF\nnlPjVjBygKbPvdx1mxvE0jJEBXJ9KHTzdlo3zsQYST9DiF2AcTJmXK7QcVzT\n43TCWU1cVZ2zXH8e5X6gjM2j7hucUjDp/lO7ZPSbJ14cznuiu+HX4KvzUiGY\ntMxl\r\n=vyAz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+le2Qoa3CmJfFoBqkp72tTCxOuCsohHXtkYCLLDUe+AiEAxNiqRulV2B8/ONAvm0HT9ZNdXiRL93VxPTYWj2eCDCQ="}]},"maintainers":[{"name":"paulopmx","email":"paulo@codeninja.co"}],"_npmUser":{"name":"paulopmx","email":"paulo@codeninja.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-lang-generator_1.0.3_1570165539167_0.6199143312284696"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-25T12:57:15.040Z","1.0.0":"2019-09-25T12:57:15.399Z","modified":"2022-04-04T23:57:14.600Z","1.0.1":"2019-09-25T14:06:29.183Z","1.0.2":"2019-09-26T11:43:23.388Z","1.0.3":"2019-10-04T05:05:39.316Z"},"maintainers":[{"name":"paulopmx","email":"paulo@codeninja.co"}],"description":"Generate translation files for vue-i18n projects","homepage":"https://github.com/code-ninja/i18n-lang-generator#readme","keywords":["i18n","vue","translation","vue-18n"],"repository":{"type":"git","url":"git+https://github.com/code-ninja/i18n-lang-generator.git"},"author":{"name":"Paulo Marinas"},"bugs":{"url":"https://github.com/code-ninja/i18n-lang-generator/issues"},"license":"MIT","readme":"# Generate translation json files for [vue-i18n](https://github.com/kazupon/vue-i18n)\n\nThis is a forked project of [webpack-i18n-generate-json](https://github.com/gkShine/i18n-generate-json) which we love and recommend. This was made to cater to our own workflow where we want to support vue-i18n's [Locale messages syntax](https://kazupon.github.io/vue-i18n/guide/messages.html). Right now it will only work with nested objects like $('message.hello') and not $('errors[0]')\n\n## Planned features\n  * Support for arrays like $('errors[0]')\n  * Ability to import/export csv and yml files to make it easier to work with translators\n\n## Basic Example\n\n## Install\n`npm i @code-ninja/i18n-lang-generator --save-dev`\nor\n`yarn add @code-ninja/i18n-lang-generator`\n\n### package.json\n```\n  scripts: {\n    \"i18n-lang-generator\": \"i18n-lang-generator -d src -l 'en-US'\"\n  }\n```\n\n## Run\n1. add a script (see example package.json)\n2. `npm run i18n-lang-generator`\n\n### App code\n```\n  <form>\n    <p>{{ $t('Hello') }}</p>\n    <button type=\"submit\">{{ $t('button.save') }}</button>\n    <button type=\"reset\">{{ $t('button.cancel') }}</span> // variable replacement\n  </form>\n```\n\n### Output translation json - send it to the translator. Regenerating it won't delete existing translations.\n```\n  {\n    \"Hello\":\"Hello\",\n    \"button\": {\n      \"save\": \"save\",\n      \"cancel\": \"cancel\"\n    }\n  }  \n```\n\n## Options\n- `-d, -directory, default [cwd]`\n- `-b, -base directory, default [none]`\n- `-f, -functionName, default [\\\\$t]`\n- `-o, -outputDirectory, default [lang]`\n- `-l, -languages REQUIRED, default [none]`\n- `-x, -deleteExpired, default [false] : deletes unused translations`\n- `-r, -forceReWrite, default [false]: rewrites malformed json files`\n","readmeFilename":"README.md"}