A Grunt task to run jsxgettext extracting strings and creating POT files.
grunt.initConfig({
jsxgettext: {
test: {
files: [
{
src: ['tests/fixtures/**/*.*js', '!ignored'],
dest: './test.pot'
}
],
options: {
keyword: 'gettext'
}
}
}
})
This plugin requires Grunt ~0.4.2
npm install grunt-jsxgettext --save-dev
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-jsxgettext');