{"_id":"grunt-po-json-pluralize","_rev":"30-e9f736852ab02858e4ab60f7dc8320cf","name":"grunt-po-json-pluralize","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.0":{"name":"grunt-po-json-pluralize","version":"0.1.0","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"_id":"grunt-po-json-pluralize@0.1.0","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"e6dafabf9dbb4654347c4838c8c09d366c4f74e3","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.0.tgz","integrity":"sha512-mIwCb5dc1rSL2VzzT+6GUAtdYXK3u0v0q1nSxQyAZsrcnfKxN3Ovq4+Ba6WUPG6ozygS+dergW5c3ioNH6/S8Q==","signatures":[{"sig":"MEQCIDTkFPC2rraQRlMz2vcUfPLRtWY5fU+1tOnkNXXLuGx1AiAJb5s0kD1S1xWDFjCoM5L3/T67Y5gLTBzEmCfLsrVhaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":"./","_shasum":"e6dafabf9dbb4654347c4838c8c09d366c4f74e3","engines":{"node":">= 0.8.0"},"gitHead":"5cfe0fd7e5f3c590e1797dbeb27d05f82343a67e","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.28","description":"Converts one or more po files to a single json or amd module.","directories":{},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.1":{"name":"grunt-po-json-pluralize","version":"0.1.1","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"_id":"grunt-po-json-pluralize@0.1.1","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"6e58fae4fe5b067fa793add2b727fc888cb2100b","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.1.tgz","integrity":"sha512-dyGTADdnjfoc4LQtk40xjKcGNXPSjzP4niwR7owE3w4XOpL4dMDsxFfMPSqdOYjVupWsj80ES1QD77NbZMp+2w==","signatures":[{"sig":"MEYCIQCYttEAQLz4GUhdStVvjA2nQZyUS4jzb/fu6y+rQcUdKgIhAJcWy8Nwa77JKtm/BRcHbjsPMw41OcQ13ZJe2FKCp/OO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":"./","_shasum":"6e58fae4fe5b067fa793add2b727fc888cb2100b","engines":{"node":">= 0.8.0"},"gitHead":"f23e9d5b1caffcbbd4b76d3956937ca9b6577f71","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.28","description":"Converts one or more po files to a single json or amd module.","directories":{},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.2":{"name":"grunt-po-json-pluralize","version":"0.1.2","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.2","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"e76e6a177fa83f26e197615dc8ad575d1f1e76ea","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.2.tgz","integrity":"sha512-FWycYwDwDwzAOI9q6VbF2dIh20iEFOh3F71Ped6irqPKkNfKrf9muTiia/k4ul+IFub0jyvijqhXzPEq3Z0kQw==","signatures":[{"sig":"MEUCID4bMesBSJT89fic5Z8Zdk+7MTzvRBhupKjQMQBDLlv4AiEA+U0kelroG6TZaWHu68i7WnqGjqRtNo4q0hbBXOjIDpQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":"./","_shasum":"e76e6a177fa83f26e197615dc8ad575d1f1e76ea","engines":{"node":">= 0.8.0"},"gitHead":"f5a2f5f000ab0649f936f26b3b2cc85e0d6749bf","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.28","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.3":{"name":"grunt-po-json-pluralize","version":"0.1.3","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.3","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"c9437b128e07d61e2a8e88871215b70a0bdaa643","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.3.tgz","integrity":"sha512-CdHKQBIb4OEXqU8suMV7s9SHnxrhiSvtROvCe14xLVEzrMjZ74ziRQ2xip+siwvCjUx9LOX3EP4iaKojgoODHw==","signatures":[{"sig":"MEUCIQDSB5KUDTyDNDo9XrCJaZWgZ3bP0G5e1MaSkz+qZSmFBQIgaVq085PUcVITwxsY6/Vw1LzWGXlr4cM/0y63befmNps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"c9437b128e07d61e2a8e88871215b70a0bdaa643","engines":{"node":">= 0.8.0"},"gitHead":"8bfb697fb91b9e3f39991c7f21af4c55c5fbec33","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.23","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.4":{"name":"grunt-po-json-pluralize","version":"0.1.4","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.4","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"cee4e3b72d7ea10f78c3a04934f6bf479103f1d3","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.4.tgz","integrity":"sha512-Kdg/xsTVALiyelkwIwTAg9e21Lxuo67QpI+U++9e9tz4iA3vUGfQZjl3tjGLPSjFSQczgWADxkdSafCu1VH92g==","signatures":[{"sig":"MEUCIHWrwEbJR61mtq0JmD6ZUcnXJ1zIo/rZu83y/wf88H9+AiEA4wZKt05WicQt2w9+jrAszMys3B8Xf9qCVA2DwwzZ7BY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"cee4e3b72d7ea10f78c3a04934f6bf479103f1d3","engines":{"node":">= 0.8.0"},"gitHead":"a0683aff14f30b3afcdf3127b9541e74b6c2cab6","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.23","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.5":{"name":"grunt-po-json-pluralize","version":"0.1.5","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.5","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"e61312e3fc7b81534d9fb74fbc7cf8e42c0292c0","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.5.tgz","integrity":"sha512-LGiRwnkRi0ltPInxOMRpQzh3Pq9QEI4OG6c9nlIq2aPsZ+U/5VJu3PSnFHVy6RHaPlynVU1XFjb+Mnbtg/VysQ==","signatures":[{"sig":"MEUCIQCQ4A/8NlNsZS14n83QrNguHKF49ZCIo0S/zLmkokJTCgIgVbPb6QsTSA93oj0+as+YKIWFphzJvdjOSDOcJVVIgSo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"e61312e3fc7b81534d9fb74fbc7cf8e42c0292c0","engines":{"node":">= 0.8.0"},"gitHead":"e6d229bca31b8330d24cc985396aa76caa91843e","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.23","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.6":{"name":"grunt-po-json-pluralize","version":"0.1.6","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.6","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"f4df26dce30267370927122f530f8e16f4eda80d","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.6.tgz","integrity":"sha512-tiRSKSbKMCfl8KgP2XOQ0OaWvU862RsMRlSjXlHF2+lhg2UXOxpjSit7R+2wKVbMB/2w6pZbeM/UTVa4ADGKXw==","signatures":[{"sig":"MEYCIQDqfzBn1kAIyQ1befQownUhH7oBIuV3SXqAkYmRK4YKFgIhAMfsSPtC7c2l9tGNc/Tyy2NUSRNSvGMl5ZUVyC16Z8w6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"f4df26dce30267370927122f530f8e16f4eda80d","engines":{"node":">= 0.8.0"},"gitHead":"c1bfa471c13188ab96217c2c9d43b1e9a0e54c1a","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.23","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.1.7":{"name":"grunt-po-json-pluralize","version":"0.1.7","keywords":["gruntplugin","json","po","amd"],"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","_id":"grunt-po-json-pluralize@0.1.7","maintainers":[{"name":"qwant","email":"contact@qwant.com"}],"homepage":"https://github.com/Qwant/grunt-po-json","bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"dist":{"shasum":"1aa292eab22675d8b7f3a416d9ad1534a1c9b66a","tarball":"https://registry.npmjs.org/grunt-po-json-pluralize/-/grunt-po-json-pluralize-0.1.7.tgz","integrity":"sha512-jV/Em1Tg0t3dw2VfRN7PanfLHDKVEZp6Fok9g8U8Iw8um9B+9Z5/qPIZ/tNboRUYGYX8ss1T4cf8Xi6ckkgbwQ==","signatures":[{"sig":"MEUCIFt/oGl+mkFFSalSmlm4I+Xh7A5kv2aPoeoNSnXABxzaAiEAzwiagBmEZMOMMmkLXEWwsh+c3S2AScCWV7n4ReY1g6I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"1aa292eab22675d8b7f3a416d9ad1534a1c9b66a","engines":{"node":">= 0.8.0"},"gitHead":"302aa8502293d49bb784a93d470bf9ee3d11f376","scripts":{"test":"grunt test"},"_npmUser":{"name":"qwant","email":"contact@qwant.com"},"licenses":[{"url":"/blob/master/LICENSE-MIT","type":"MIT"}],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"_npmVersion":"1.4.23","description":"Converts one or more po files to a single json or amd module.","directories":{"test":"test"},"dependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.4.1","grunt-contrib-jshint":"^0.6.5","grunt-contrib-nodeunit":"^0.2.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.6.0","grunt-contrib-nodeunit":"~0.2.0"},"peerDependencies":{"grunt":"~0.4.2"}}},"time":{"created":"2014-12-18T09:31:36.004Z","modified":"2026-03-24T18:35:54.177Z","0.1.0":"2014-12-18T09:31:36.004Z","0.1.1":"2014-12-18T10:04:44.293Z","0.1.2":"2014-12-18T16:28:18.269Z","0.1.3":"2015-03-13T13:14:18.774Z","0.1.4":"2015-03-13T14:44:57.816Z","0.1.5":"2015-03-13T17:29:12.093Z","0.1.6":"2015-04-13T11:41:00.956Z","0.1.7":"2015-04-13T15:49:44.612Z"},"bugs":{"url":"https://github.com/Qwant/grunt-po-json/issues"},"author":{"name":"Qwant","email":"contact@qwant.com"},"license":"ISC","homepage":"https://github.com/Qwant/grunt-po-json","keywords":["gruntplugin","json","po","amd"],"repository":{"url":"git://github.com/Qwant/grunt-po-json.git","type":"git"},"description":"Converts one or more po files to a single json or amd module.","maintainers":[{"email":"p.vignaux@qwant.com","name":"p.vignaux"},{"email":"c.torre@qwant.com","name":"c.torre"},{"email":"pascaloliv@gmail.com","name":"pascaloliv"},{"email":"s.dirollo@qwant.com","name":"sdrll"},{"email":"mickael.kasinski@gmail.com","name":"kaskr"}],"readme":"# grunt-po-json\r\n\r\n> Converts one or more po files to a single json or amd module.\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.2`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-po-json --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-po-json');\r\n```\r\n\r\n## The \"po_json\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `po_json` to the data object passed into `grunt.initConfig()`. You must specify a target in which you can add `options` and `files`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  po_json: {\r\n    target: {\r\n      files: {\r\n        'path/to/dest.json': 'path/to/src.po'\r\n      }\r\n    },\r\n    targetMultiple: {\r\n      options : {\r\n        amd: true\r\n      },\r\n      files: {\r\n        'path/to/dest2.js': {\r\n          'src2': 'path/to/src2.json',\r\n          'src3': 'path/to/src3.json'\r\n        }\r\n      }\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n### Options\r\n\r\n#### options.amd\r\nType: `Boolean`\r\nDefault value: `false`\r\n\r\nWraps the result in a `define( );` call so you can use it as an amd module. You probably want your dest path to end with `.js` instead of `.json`.\r\n\r\n### Files\r\n\r\n#### files[property]\r\nType `String|Object`\r\n\r\nEach property of the files object can be a string path to a `.po` file, or an object of properties with string paths to `.po` files. In case of an object, the output file will have the output of each `.po` file under their respective property names.\r\n\r\n### Usage Examples\r\n\r\n#### Default Options\r\nThis example processes two `.po` files and puts them in two separate `.json` files.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  po_json: {\r\n    target: {\r\n      files: {\r\n        'path/to/dest1.json': 'path/to/src1.po'\r\n        'path/to/dest2.json': 'path/to/src2.po'\r\n      }\r\n    },\r\n  },\r\n});\r\n```\r\n\r\n#### Custom Options\r\nThis example processes two `.po` files and puts them in a single `.js` file. It also turns it in an (anonymous) amd module. When used, the conversion results are accessible via `obj.src1` and `obj.src2`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  po_json: {\r\n    options: {\r\n      amd: true\r\n    },\r\n    target: {\r\n      files: {\r\n        'path/to/dest.js': {\r\n          'src1': 'path/to/src1.po',\r\n          'src2': 'path/to/src2.po'\r\n        }\r\n      }\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n## Contributing\r\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\r\n\r\n## Release History\r\n_(Nothing yet)_\r\n","readmeFilename":"README.md"}