jsxgettext-recursive

Recursively search and extract gettext strings

npm install jsxgettext-recursive
78 downloads in the last day
346 downloads in the last week
1 051 downloads in the last month

jsxgettext-recursive

Recursively search and extract gettext strings.

Example

var extract = require('jsxgettext-recursive');


var walker = extract({
  'input-dir': './app/scripts',
  'output-dir': './locales',
  'output': 'client.pot',
  'join-existing': false,
  'keyword': 't',
  parsers: {
    '.js': 'javascript',
    '.mustache': 'handlebars'
  }
});

walker.on('end', function() {
  console.log('done!');
});

Possible parsers include: javascript, handlebars, jade, ejs, jinja.

npm loves you