README
pojson
Converts .PO files to angular-gettext JSON
installing
$ npm install -g pojson
using
$ pojson inputdir outputdir
All 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.po
the commend pojson ./po ./assets/lang
will produce this:
.
├── assets
│ └── lang
│ ├── de.json
│ ├── en.json
│ └── fr.json
└── po
├── de.po
├── en.po
└── fr.po