Pure Javascript implementation of Uniforum message translation. Based on a great gist.
Install the module with: npm install po2json
var po2json = require('po2json');
po2json translation.po translation.json
(Coming soon)
var po2json = require('po2json');
po2json.parse('messages.po', function (err, jsondata) {
// do something interesting ...
})
var po2json = require('po2json');
var jsondata = '';
try {
jsondata = po2json.parseSync('messages.po');
// do something interesting ...
} catch (e) {}
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
- Fixed linting bugs and added a better fr.po fixture (Mike Edwards)
- Add tests for po2json.parse and po2json.parseSync (Dan MacTough)
- updated README.md with version history (Mike Edwards)
- updated history (Mike Edwards)
- Add AUTHORS to identify contributors (Dan MacTough)
- Update README with revision history and basic examples (Dan MacTough)
- cut out fake README example from grunt boilerplate (Mike Edwards)
- fixed README.md markdown (Mike Edwards)
- fixes tests (Mike Edwards)
- added first test for parse_po (Mike Edwards)
- Added boilerplate using grunt init (Mike Edwards)
- Changed exports.parse to use node's convetional error-first callback style. Added exports.parseSync for synchronous parsing. (Dan MacTough)
- Properly escape linebreaks (Zach Carter)
- Update package.json (Mike Edwards)
- package.json: define main module (Asbjørn Sloth Tønnesen)
- fix package, fix pretty print return, remove debug logs (gilles)
- upped version (Mike Edwards)
- Added build status to README (Mike Edwards)
- Removed built=ints from the dependencies (Mike Edwards)
- Added a .travis file for continuous integration (Mike Edwards)
- Added usage note to README.md (Mike Edwards)
- First working script! (Mike Edwards)
- Added new git repo (Mike Edwards)
- initial commit (Mike Edwards)
- Initial commit (Mike Edwards)
Copyright (c) 2012 Joshua I. Miller
Licensed under the GNU, Library, General, Public, License licenses.