0.0.1 • Published 9 years ago
pojson v0.0.1
pojson
Converts .PO files to angular-gettext JSON
installing
$ npm install -g pojsonusing
$ 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.po0.0.1
9 years ago