module.exports = function (grunt) { grunt.initConfig({ nggettext_extract: { pot: { files: { 'app/assets/locales/templates.pot': ['app/views/angular/**/*.html', 'app/views/angular/**/*.html.erb', 'app/assets/javascripts/**/*.js', 'app/assets/javascripts/**/*.js', 'app/assets/javascripts/**/*.coffee', 'app/assets/javascripts/**/*.coffee.erb'] } } }, nggettext_compile: { all: { options: { module: "Dashboard" }, files: { 'app/assets/javascripts/locales/translations.fa.js': ['app/assets/locales/*.fa.pot'] } } } }); grunt.loadNpmTasks('grunt-angular-gettext'); grunt.registerTask('default', ['nggettext_extract', 'nggettext_compile']); };