Skip to content

Instantly share code, notes, and snippets.

@samirbr
Last active August 29, 2015 14:25
Show Gist options
  • Save samirbr/f58c90923539d315c303 to your computer and use it in GitHub Desktop.
Save samirbr/f58c90923539d315c303 to your computer and use it in GitHub Desktop.
Gruntfile
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
nggettext_compile: {
all: {
options: {
format: "json"
},
files: [
{
expand: true,
dot: true,
cwd: "po",
dest: "messages/",
src: ["../../locale/**/*.po"],
ext: ".json"
}
]
},
},
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-angular-gettext');
// Default task(s).
grunt.registerTask('default', ['nggettext_compile']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment