0.0.1 • Published 9 years ago

pojson v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

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
0.0.1

9 years ago