pojson
v0.0.1
Published
Converts PO files to (angular-gettext) JSON
Readme
pojson
Converts .PO files to angular-gettext JSON
installing
$ npm install -g pojson
using
$ pojson inputdir outputdirAll PO files in inputdir will be converted to JSON and written to outputdir using the same base file name with '.json' extension.
outputdir has to exist, and existing output files will be overwritten.
example
Given this:
.
├── assets
│ └── lang
└── po
├── de.po
├── en.po
└── fr.pothe commend pojson ./po ./assets/lang will produce this:
.
├── assets
│ └── lang
│ ├── de.json
│ ├── en.json
│ └── fr.json
└── po
├── de.po
├── en.po
└── fr.po