1.1.0 • Published 6 years ago

jsxgettext-recursive-next v1.1.0

Weekly downloads
16
License
Apache 2.0
Repository
github
Last release
6 years ago

jsxgettext-recursive

Recursively search and extract gettext strings.

Install

npm install jsxgettext-recursive

Example

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


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

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

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