{"_id":"grunt-ovh-translation","_rev":"33-5d940e50271cec8af1be7b1518689124","name":"grunt-ovh-translation","dist-tags":{"latest":"2.1.2"},"versions":{"2.1.1":{"name":"grunt-ovh-translation","version":"2.1.1","keywords":["grunt"],"author":{"name":"ovh"},"license":"ISC","_id":"grunt-ovh-translation@2.1.1","maintainers":[{"name":"frisouilles","email":"kevin.bonduelle@corp.ovh.com"}],"homepage":"https://github.com/ovh-ux/grunt-ovh-translation#readme","bugs":{"url":"https://github.com/ovh-ux/grunt-ovh-translation/issues"},"dist":{"shasum":"51cb6aa75324cde0468f9dbf92c49dac2a8ac9b2","tarball":"https://registry.npmjs.org/grunt-ovh-translation/-/grunt-ovh-translation-2.1.1.tgz","integrity":"sha512-oeka3zVdur0mzbWvaxrfEJmYot0d5EslO0QPqX7bp6H44qymhACSgjSs6KSLO02+yXQ9E+lzOoaE+72spcq2XQ==","signatures":[{"sig":"MEQCIBko2dLVx/uSLUQd8xWgvMXxndesuiHWlVHiNwi8GWYEAiBm6IHgpm4VrmF1uraCLmk3veJWyIa4JzW03Ba3zY+Ikw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tasks/ovh-translation.js","_from":".","_shasum":"51cb6aa75324cde0468f9dbf92c49dac2a8ac9b2","gitHead":"0e7c0be32af4203281f2e3577b64c43f8098f614","scripts":{"test":"grunt nodeunit"},"_npmUser":{"name":"frisouilles","email":"kevin.bonduelle@corp.ovh.com"},"repository":{"url":"git+https://github.com/ovh-ux/grunt-ovh-translation.git","type":"git"},"_npmVersion":"4.1.2","description":"Grunt task to convert xml translations into json files","directories":{},"_nodeVersion":"7.7.1","dependencies":{"node-xml-lite":"0.0.4"},"devDependencies":{"grunt":"^0.4.2","grunt-cli":"^0.1.13","grunt-contrib-jshint":"^0.11.0","grunt-contrib-nodeunit":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/grunt-ovh-translation-2.1.1.tgz_1498222979017_0.8595026826951653","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"grunt-ovh-translation","version":"2.1.2","keywords":["grunt"],"author":{"name":"OVH SAS"},"license":"BSD-3-Clause","_id":"grunt-ovh-translation@2.1.2","maintainers":[{"name":"antleblanc","email":"ant.leblanc@gmail.com"},{"name":"ovh","email":"npm@ovh.net"},{"name":"frisouilles","email":"kevin.bonduelle@corp.ovh.com"},{"name":"ovh-ux-cds","email":"kevin.bonduelle+ovh-ux-cds@corp.ovh.com"},{"name":"bnjjj","email":"benjamin.coenen@hotmail.com"},{"name":"jleveugle","email":"joffrey.leveugle@gmail.com"},{"name":"cyrille.meichel","email":"cyrille.meichel@corp.ovh.com"},{"name":"gioindahouz","email":"giovanni.clement@gmail.com"},{"name":"lizardk","email":"cyril.biencourt@corp.ovh.com"}],"homepage":"https://github.com/ovh-ux/grunt-ovh-translation#readme","bugs":{"url":"https://github.com/ovh-ux/grunt-ovh-translation/issues"},"dist":{"shasum":"4025496c31b6fcbb298506eb526af5a6a693ee7c","tarball":"https://registry.npmjs.org/grunt-ovh-translation/-/grunt-ovh-translation-2.1.2.tgz","integrity":"sha512-7SZjOlgvw1Lmcj8KpGszKUxUAnZtG6vezjaDaN9bMtuJiofZoXLCzBxcULQTC2XL3KwevLQz+8K/zFqtiu/xyg==","signatures":[{"sig":"MEQCIBWwXQKem4PEzPGD3zqpRTGzTUB/T/ST1GFQsOqbgVLDAiAWxXJ0dQus/8H4y2uBIhD0ck3t56SihClYKxrACFs4xQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tasks/ovh-translation.js","gitHead":"2b9b3dca36c85f490f75e8180a86bd134848c1b1","scripts":{"test":"grunt nodeunit"},"_npmUser":{"name":"antleblanc","email":"ant.leblanc@gmail.com"},"repository":{"url":"git+https://github.com/ovh-ux/grunt-ovh-translation.git","type":"git"},"_npmVersion":"5.3.0","description":"Grunt task to convert xml translations into json files","directories":{},"_nodeVersion":"6.11.0","dependencies":{"node-xml-lite":"0.0.4"},"devDependencies":{"grunt":"^0.4.2","grunt-cli":"^0.1.13","grunt-bump":"^0.8.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-nodeunit":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/grunt-ovh-translation-2.1.2.tgz_1500987623629_0.3237014324404299","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-06-23T13:03:00.002Z","modified":"2025-12-18T14:47:36.317Z","2.1.1":"2017-06-23T13:03:00.002Z","2.1.2":"2017-07-25T13:00:24.720Z"},"bugs":{"url":"https://github.com/ovh-ux/grunt-ovh-translation/issues"},"author":{"name":"OVH SAS"},"license":"BSD-3-Clause","homepage":"https://github.com/ovh-ux/grunt-ovh-translation#readme","keywords":["grunt"],"repository":{"url":"git+https://github.com/ovh-ux/grunt-ovh-translation.git","type":"git"},"description":"Grunt task to convert xml translations into json files","maintainers":[{"email":"jean-christophe.alleman@corp.ovh.com","name":"jisay"},{"email":"jean-philippe.blary@corp.ovh.com","name":"blary_jp"},{"email":"ant.leblanc@gmail.com","name":"antleblanc"},{"email":"tech.ux.ext@ovh.com","name":"ovh-ux-cds"},{"email":"cyril.biencourt@corp.ovh.com","name":"lizardk"},{"email":"opensource@ovh.net","name":"ovh"},{"email":"mariejones962@gmail.com","name":"marie-j"},{"email":"anooparveti@gmail.com","name":"anooparveti"},{"email":"helabenkhalfallah@hotmail.fr","name":"helabenkhalfallah"},{"email":"benjamin.coenen@hotmail.com","name":"bnjjj"},{"email":"giovanni.clement@gmail.com","name":"gioindahouz"},{"email":"k.ung@rduk.fr","name":"khuang"},{"email":"joffrey.leveugle@gmail.com","name":"jleveugle"},{"email":"axel.peter@live.com","name":"axelpeter"},{"email":"cyrille.bourgois@gmail.com","name":"cbourgois"}],"readme":"# grunt-ovh-translation\r\n\r\n![githubbanner](https://user-images.githubusercontent.com/3379410/27423240-3f944bc4-5731-11e7-87bb-3ff603aff8a7.png)\r\n\r\n[![Maintenance](https://img.shields.io/maintenance/yes/2017.svg)]() [![Chat on gitter](https://img.shields.io/gitter/room/ovh/ux.svg)](https://gitter.im/ovh/ux)\r\n\r\n[![NPM](https://nodei.co/npm/grunt-ovh-translation.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/grunt-ovh-translation/)\r\n\r\n> Convert xml translations into JSON key-value\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# Example\r\n\r\n```javascript\r\ngrunt.loadNpmTasks('grunt-ovh-translation');\r\n```\r\n\r\n### Configuration\r\nIn your project's Gruntfile, add a section named `ovhTranslation` to the data object passed into `grunt.initConfig()`. The options (and defaults) are:\r\n\r\n```JavaScript\r\ngrunt.initConfig({\r\n  ovhTranslation: {\r\n    dev: {\r\n        files: [\r\n            {\r\n                expand: true,\r\n                flatten: false,\r\n                cwd: 'client',\r\n                src: [\r\n                    'app/**/translations/*.xml',\r\n                    'components/**/translations/*.xml'\r\n                ],\r\n                dest: '.tmp',\r\n                filter: 'isFile',\r\n                extendFrom: ['en_GB', 'fr_FR'],\r\n                lint: true      // [optionnal] set it to false to disable linter\r\n            }\r\n        ]\r\n    }\r\n  },\r\n})\r\n```\r\n\r\n## Installation\r\nThis plugin requires Grunt.\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### npm\r\n\r\n```\r\nnpm install grunt-ovh-translation --save-dev\r\n```\r\n\r\n### Get the sources\r\n\r\n```\r\n    git clone https://github.com/ovh-ux/grunt-ovh-translation.git\r\n    cd grunt-ovh-translation\r\n    npm install\r\n    bower install\r\n```\r\n\r\n### For Windows User\r\nIf you get\r\n\r\n```shell\r\nWarning: Your translation file must have a linebreak at the end of the file (file: client/app/module-otrs/details/translations/Messages_cs_CZ.xml). Use --force to continue.\r\n\r\nAborted due to warnings.\r\n```\r\n\r\nit might be because your file does not end with LF, but with CRLF.\r\n\r\nTo fix this:\r\n\r\n```bash\r\n#Change your git config to LF\r\ngit config --global core.eol lf\r\ngit config --global core.autocrlf false\r\n\r\n#You might have to change all the files in the repo\r\ngit rm -rf --cached .\r\ngit reset --hard HEAD\r\n```\r\n\r\n# Related links\r\n\r\n * Contribute: https://github.com/ovh-ux/grunt-ovh-translation/CONTRIBUTING.md\r\n * Report bugs: https://github.com/ovh-ux/grunt-ovh-translation/issues\r\n * Get latest version: https://github.com/ovh-ux/grunt-ovh-translation\r\n\r\n# License\r\n\r\nSee https://github.com/ovh-ux/grunt-ovh-translation/blob/master/LICENSE\r\n","readmeFilename":"README.md"}