Helper for applying xgettext to jade/pug files It transforms Jade/Pug templates into simplified JAvaScript that can be parsed by xgettext.
$ npm install --save gettext-pug
Programmatically:
var gettextPug = require('gettext-pug');
var javascript = gettextPug(jadeOrPugTemplate);
Command line - to prep and process a directory of .jade/.pug templates:
$ gettext-pug [from-directory] [to-directory]
$ xgettext [files-in-to-directory]
MIT © Damian Krzeminski