Coder Social home page Coder Social logo

sanduhrs / po2json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikeedwards/po2json

0.0 1.0 0.0 83 KB

Pure Javascript implementation of Uniforum message translation. Based on a great gist.

Home Page:

License: Other

po2json's Introduction


Build Status Pure Javascript implementation of Uniforum message translation. Based on a great gist.

Getting Started

Install the module with: npm install po2json

As a library

var po2json = require('po2json');

As an executable

po2json translation.po translation.json


(Coming soon)


Asynchronous Usage

var po2json = require('po2json');
po2json.parse('messages.po', function (err, jsondata) {
    // do something interesting ...

Synchronous Usage

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.

Release History

0.0.7 / 2012-10-26

  • Fixed linting bugs and added a better fr.po fixture (Mike Edwards)
  • Add tests for po2json.parse and po2json.parseSync (Dan MacTough)
  • updated with version history (Mike Edwards)
  • updated history (Mike Edwards)

0.0.6 / 2012-10-22

  • Add AUTHORS to identify contributors (Dan MacTough)
  • Update README with revision history and basic examples (Dan MacTough)

0.0.5 / 2012-10-19

  • cut out fake README example from grunt boilerplate (Mike Edwards)
  • fixed 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)

0.0.4 / 2012-09-18

  • Properly escape linebreaks (Zach Carter)
  • Update package.json (Mike Edwards)
  • package.json: define main module (Asbjørn Sloth Tønnesen)

0.0.2 / 2012-07-03

  • fix package, fix pretty print return, remove debug logs (gilles)
  • upped version (Mike Edwards)

0.0.1 / 2012-06-06

  • 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 (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.

po2json's People


mikeedwards avatar danmactough avatar mugami-ast avatar zaach avatar gilles avatar


James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.