pocreate

0.1.2 • Public • Published

PoCreate

PoCreate lets you incrementally update your .po files as you develop by merging new translations into existing .po files.

build status

If a key is found in the source tree that doesn't exist in one or more of the supplied .po files, the key is added with with a blank msgstr. Translators can then be supplied with the updated .po files and fill in the blank msgstr entries.

Installation

This module is installed via npm:

$ npm install pocreate

Example Usage

var src = {'file1.js': 'gettext("hello")'};
var pos = {'english.po': '...'};
 
var pocreate = require('pocreate');
var updatedPos = pocreate.parse(src, pos);

Dependencies

PoCreate depends on two great modules, jsxgettext and gettext-parser.

Currently it relies on a forked version of jsxgettext which adds pluralization and multiline contextual comments for translators.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i pocreate

Weekly Downloads

0

Version

0.1.2

License

BSD-3-Clause

Last publish

Collaborators

  • plemarquand