2011-12-23 04:21:27 +04:00
|
|
|
Used to load and save PO files.
|
|
|
|
|
2013-12-18 20:03:24 +04:00
|
|
|
```js
|
|
|
|
var PO = require('node-po');
|
|
|
|
|
|
|
|
PO.load('text.po', function (err, po) {
|
|
|
|
// Handle err if needed
|
|
|
|
console.log(po.headers);
|
|
|
|
console.log(po.items);
|
|
|
|
|
|
|
|
po.save('copy.po', function (err) {
|
|
|
|
// Handle err if needed
|
2011-12-28 00:03:19 +04:00
|
|
|
console.log('We copied a PO file for no reason!');
|
|
|
|
});
|
2013-12-18 20:03:24 +04:00
|
|
|
});
|
|
|
|
```
|