{"_id":"grunt-static-i18n","_rev":"31-d76de26ce5c1bb7f606cd6e55c96760e","name":"grunt-static-i18n","description":"Grunt plugin to translate static assets.","dist-tags":{"latest":"0.3.3"},"versions":{"0.0.1":{"name":"grunt-static-i18n","version":"0.0.1","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"devDependencies":{"grunt-contrib-clean":"0.5.x","grunt-contrib-jshint":"0.8.x","grunt":"0.4.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","lodash-node":"2.4.x","node-gettext":"0.2.x","sinon":"1.8.x","grunt-contrib-copy":"~0.5.0","grunt-blanket":"0.0.8","grunt-mocha-test":"~0.9.4","mocha-lcov-reporter":"0.0.1","grunt-coveralls":"~0.3.0"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.0.1","dist":{"shasum":"ff578f2064821b1088a128ffbd5259aee879879f","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.0.1.tgz","integrity":"sha512-oGI97tjBv/1NP1qlSQMVfJCP4qfBm2vJwIZtdp4p68B6TzwAeEH8nSPwCbovBPlQKMzLlWWjXDdhEIfD2uqn8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaj6f6olSjnLAhaZGuZPMYAm4Jj8O0TrpFTMBALbpd+gIgL05cyHy1tNuPFlIbC5k43zBFuwo9M6tK3lPx1DevRVA="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.0.2":{"name":"grunt-static-i18n","version":"0.0.2","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"grunt-contrib-clean":"0.5.x","grunt-contrib-jshint":"0.8.x","grunt":"0.4.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","sinon":"1.8.x","grunt-contrib-copy":"~0.5.0","grunt-blanket":"0.0.8","grunt-mocha-test":"~0.9.4","mocha-lcov-reporter":"0.0.1","grunt-karma-coveralls":"~2.4.0"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.0.2","dist":{"shasum":"f336379867200e11ad143abb6ac2b6d0e3591727","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.0.2.tgz","integrity":"sha512-3ql1TogDz94vXdwj/6ymvd/KGPIo5CjsVSwwPYdgs8RCAKFPSJJm7A0Wqz/qrylGzAiXDBQ8LQWuyy5sztgT3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqyCOIFbwdVj3k8juWWzRuoJr26v7shDn0fYT82vXxRAIhAIBOXUqgEHmuHO6z3RQudivB7ZMQEywS/e5SdN9ML14m"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.1.0":{"name":"grunt-static-i18n","version":"0.1.0","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.1.0","dist":{"shasum":"97d4e57b6e64454eedf402d975c3241bc10a2f30","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.1.0.tgz","integrity":"sha512-Oe8KKStTt7BdyrEsSzHr7d/mFngriVNVzpxGo7PGD81W05TgZ+L51qbwQBDv/Z2jWRwaO09ZqCNeRQ+an45PGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDikjQL8lGASx4Mo6hkjb5ams77WOmjHhjXhqh3ZvCDuQIhAJ9uNaAf+qlRrGW02qNcXRayUWre+p0iaHCJH7NI2R8R"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.2.0":{"name":"grunt-static-i18n","version":"0.2.0","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.2.0","dist":{"shasum":"8207c8291e442734dce6b5fee042287f508a2394","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.2.0.tgz","integrity":"sha512-frGochBeOtiQCxNzJRwXu0BRQCUI16P3GHPj27fF18Dp8/OWtUfKQavzTVWC8o3RttXrtg5SAW0K3HAC0Hr1Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2uISJwsI/vdEhuEto6l8r82xqXgqYpjoJOCdByf18zAiEAn6gGM605rIclWkQcnyW4Joi0sMVs23IFRS47Xn1Ha70="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.3.0":{"name":"grunt-static-i18n","version":"0.3.0","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.3.0","dist":{"shasum":"71205da28236b451d25b1a562987373ca9bf4c5e","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.3.0.tgz","integrity":"sha512-4CDLloQXtXR8qk5wqU5Pz0iASUdz6S8/bq5E6TS2viH6YW98qyl2jVpDzC08uOXnU/DXr98kXmKVl96WSP9YIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVtrKfq7L7a+SlPMDLlVTezcKruTnmF34yBnaSvc84mwIgChieW3kAlWNffWCc+bPAuXI2RGHZDwMdtt9BZyuMDpU="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.3.1":{"name":"grunt-static-i18n","version":"0.3.1","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.3.1","dist":{"shasum":"0b3618a2200dcc8365280168d91d4eba98b696a7","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.3.1.tgz","integrity":"sha512-VcSynbY/XSpr4emCjdBncg4Xve1xWLzbe7yl3yHyMgO2PB1GUlnB0JDpacFWrDHmJf9nZOMivxkE+8LHX1D2SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy2PDt3Z3n3ofGYmZajlWZOsbfRsrGYVLktUXwIotdKAIgRZtuhCY9b/+Nf9uoUQRk2/Deh8mYiE/a5c5v1hEE2cs="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}]},"0.3.2":{"name":"grunt-static-i18n","version":"0.3.2","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"https://github.com/beck/grunt-static-i18n"},"author":{"name":"Douglas Beck","email":"doug@douglasbeck.com","url":"douglasbeck.com"},"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"0.2.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"gitHead":"604d6a38b39ac846231436fc93f5545651e8b535","bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.3.2","_shasum":"048bbf8f933e48532784d013a8a27fc75799aeb7","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"}],"dist":{"shasum":"048bbf8f933e48532784d013a8a27fc75799aeb7","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.3.2.tgz","integrity":"sha512-7NMqoWnc1mmjX0Zct36PK/kINVhBWi2S27ZTjVzm6jlc+kLnOGpmXjYEuI1x1OMwLiD0GCthCN018M9nMO1ezA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5Q+onOreZo1j/r2hDpBFLqMwnYuxB1L1YbIzkmejFkQIhAL49j6TquG5GPVuW9Hhi+MK4wcf3Rk3YDYBY2xZTK77s"}]}},"0.3.3":{"name":"grunt-static-i18n","version":"0.3.3","description":"Grunt plugin to translate static assets.","homepage":"https://github.com/beck/grunt-static-i18n","repository":{"type":"git","url":"git+https://github.com/beck/grunt-static-i18n.git"},"author":{"name":"Doug Beck","email":"doug@douglasbeck.com"},"contributors":[{"name":"Stefano Rivera","email":"stefano@rivera.za.net"},{"name":"Yola Engineering","email":"engineering@yola.com"}],"keywords":["gruntplugin"],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"licenses":[{"type":"MIT"}],"dependencies":{"lodash-node":"2.4.x","node-gettext":"1.x"},"devDependencies":{"cover-child-process":"0.1.x","grunt":"0.4.x","grunt-blanket":"0.0.8","grunt-cli":"0.1.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-copy":"0.5.x","grunt-i18n-abide":"0.0.9","grunt-karma-coveralls":"2.4.x","grunt-mocha-test":"0.9.x","grunt-xgettext":"0.2.x","jshint-stylish":"0.1.x","load-grunt-tasks":"0.3.x","mocha-lcov-reporter":"0.0.1","sinon":"1.8.x"},"scripts":{"test":"grunt ci"},"gitHead":"24ba3c2d9210184ea4846dfab38d2771102173b7","bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"_id":"grunt-static-i18n@0.3.3","_shasum":"be33b2a09b29b722ddf85c0cae2ed9a9dc95b1b0","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"beck","email":"doug@douglasbeck.com"},"maintainers":[{"name":"beck","email":"doug@douglasbeck.com"},{"name":"yola","email":"engineers@yola.com"}],"dist":{"shasum":"be33b2a09b29b722ddf85c0cae2ed9a9dc95b1b0","tarball":"https://registry.npmjs.org/grunt-static-i18n/-/grunt-static-i18n-0.3.3.tgz","integrity":"sha512-AEMM7HmNrLfXusbEuvbt5BXsUHqZPGPk5DFiAdGeKsogXMPOHJC8SrMo/CXlWk+lCT98XbStLUQYASx12qsp2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDC3KZVJSs2rLwUXq9lVyl5X2P3/fMXKQ4Y3ujSS7/SNQIhAMYfeHJLXlnK8fNKtIrHc9tUaQnwzbSYoSk8maATuuQB"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/grunt-static-i18n-0.3.3.tgz_1460656266145_0.3091329368762672"}}},"readme":"# Static Internationalization\n\n[![Build Status](https://api.travis-ci.org/beck/grunt-static-i18n.png)](https://travis-ci.org/beck/grunt-static-i18n)\n[![Coverage Status](https://coveralls.io/repos/beck/grunt-static-i18n/badge.png)](https://coveralls.io/r/beck/grunt-static-i18n)\n\n> Grunt plugin to translate static assets.\n\nSay you have:\n\n```\napp/\n├── Gruntfile.js\n└── app\n    ├── locale\n    │   ├── fr\n    │   │   └── LC_MESSAGES\n    │   │       └── messages.po\n    │   └── pt_BR\n    │       └── LC_MESSAGES\n    │           └── messages.po\n    └── static\n        └── data.json  // content: [\"_('Hello World')\"]\n```\n\nAnd you need to translate `data.json`.  \nStatic internationalization would like like:\n\n```\napp/\n├── Gruntfile.js\n└── app\n    ├── i18n\n    │   ├── fr\n    │   │   └── static\n    │   │       └── data.json  // content: [\"Bonjour tout le monde\"]\n    │   ├── pt_BR\n    │   │   └── static\n    │   │       └── data.json // content: [\"Olá mundo\"]\n    │   └── static\n    │       └── data.json  // not translated: [\"Hello World\"]\n    ├── locale\n    │   ├── fr\n    │   │   └── LC_MESSAGES\n    │   │       └── messages.po\n    │   └── pt_BR\n    │       └── LC_MESSAGES\n    │           └── messages.po\n    └── static\n        └── data.json\n```\n\n\n## Getting Started\n\nThis plugin requires [Grunt](http://gruntjs.com/).\n\nTranslations are done with node-gettext and you will need a proper\ngettext catalog (structure seen above).  If need help extracting translation\nstrings, checkout [grunt-i18n-abide](https://www.npmjs.org/package/grunt-i18n-abide).\nCheckout the `makemessages` task in [Gruntfile.js](Gruntfile.js).\n\n\n## The \"statici18n\" task\n\n### Overview\n\nIn your project's Gruntfile, add a section named `statici18n` to the data\nobject passed into `grunt.initConfig()`: \n\n```js\ngrunt.initConfig({\n  statici18n: {\n    options: {\n      localeDir: 'app/locale'\n    },\n    myAppTask: {\n      files: [{\n        expand: true,\n        cwd: 'app',\n        src: 'static/*.{js,json}',\n        dest: 'app/i18n'\n      }]\n    }\n  }\n})\n```\n\n### Options\n\n#### options.localeDir\nType: `String`\nDefault value: `locale`\n\nSometimes easiest to use a var, say `<%= abideCreate.options.localeDir %>`\n\n#### options.template.interpolate\nType: `RegEx`  \nDefault: search for `_('msgid')` or `_(\"msgid\")`\n\nUsed to find gettext calls.  \nSets [_.templateSettings.interpolate](http://lodash.com/docs#templateSettings_interpolate)\n\n#### options.textDomain\nType: `String`\nDefault value: `messages`\n\nName of your po files: `locale/<lang>/LC_MESSAGES/<textDomain>.po`\n\n## Tests\n\nRun `grunt && open coverage.html`\n\n## License\nCopyright (c) 2014 Douglas Beck. Licensed under the MIT license.\n","maintainers":[{"email":"engineers@yola.com","name":"yola-engineers"},{"email":"doug@douglasbeck.com","name":"beck"},{"email":"tech+readonly@yola.com","name":"yola-readonly"}],"time":{"modified":"2022-06-18T16:02:16.143Z","created":"2014-03-06T16:26:51.418Z","0.0.1":"2014-03-06T16:26:54.933Z","0.0.2":"2014-03-06T20:40:47.394Z","0.1.0":"2014-03-12T15:04:35.482Z","0.2.0":"2014-05-19T17:51:02.572Z","0.3.0":"2014-05-19T22:06:45.080Z","0.3.1":"2014-05-20T12:57:55.834Z","0.3.2":"2014-09-03T17:46:56.153Z","0.3.3":"2016-04-14T17:51:08.652Z"},"readmeFilename":"README.md","homepage":"https://github.com/beck/grunt-static-i18n","keywords":["gruntplugin"],"repository":{"type":"git","url":"git+https://github.com/beck/grunt-static-i18n.git"},"author":{"name":"Doug Beck","email":"doug@douglasbeck.com"},"bugs":{"url":"https://github.com/beck/grunt-static-i18n/issues"},"users":{},"contributors":[{"name":"Stefano Rivera","email":"stefano@rivera.za.net"},{"name":"Yola Engineering","email":"engineering@yola.com"}]}