Parse and serialize Gettext PO files.
c7c62caa54
Remove wrong `.replace()` statement which breaks any language file from a language ending with the character `n`. It is unclear to me why this replace is even there. As it is even invalid to replace without supplying a string with what it needs to be replaced. |
||
---|---|---|
lib | ||
tests | ||
LICENSE | ||
package.json | ||
README.md |
Used to load and save PO files.
var po = require('po')
, fs = require('fs')
po.load('text.po', function(_po){
console.log(_po.headers);
console.log(_po.items);
_po.save('copy.po', function(){
console.log('We copied a PO file for no reason!');
});
});