1.0.1 • Published 7 years ago

jsxgettext-recursive v1.0.1

Weekly downloads
49
License
Apache 2.0
Repository
github
Last release
7 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.

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

8 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago