module.exports = function(grunt) { grunt.loadNpmTasks('grunt-angular-gettext'); grunt.initConfig({ nggettext_extract: { pot: { files: { 'po/template.pot': ['partials/*.html'] } }, }, }) grunt.initConfig({ nggettext_compile: { all: { files: { 'src/js/translations.js': ['po/*.po'] } }, }, }) // Default task(s). grunt.registerTask('default', ['nggettext_compile']); };