Node script to transform .po files to .json files easily
npm install node-po2jsonSimple tool for converting .po files to .json files
``
Usage: node-po2json [options]
Options:
-V, --version output the version number
-r, --recursive Recursively convert all files in directory
-h, --help output usage information
`
npm install --save node-po2json
`$3
`
node-po2json source.po target.json
`
`
node-po2json -r sourceDir targetDir
`or in
package.json
`
{
// ...
"scripts": {
//...
"convert:po": "node-po2json -r sourceDir targetDir"
},
// ...
}
``MIT