From 3ad01b44c4118acc5101a4f1f12ae241444bafbe Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sat, 16 May 2015 13:11:35 +0200 Subject: [PATCH] add grunt file to extract translations --- angular_app/Gruntfile.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 angular_app/Gruntfile.js diff --git a/angular_app/Gruntfile.js b/angular_app/Gruntfile.js new file mode 100644 index 0000000..c25eaa8 --- /dev/null +++ b/angular_app/Gruntfile.js @@ -0,0 +1,21 @@ +'use strict'; + +module.exports = function(grunt) { + grunt.initConfig({ + i18nextract: { + default_options: { + src: ['*.html', 'js/*.js'], + lang: ['it_IT'], + dest: '../static/i18n' + } + } + } + ); + + grunt.loadTasks('tasks'); + grunt.loadNpmTasks('grunt-angular-translate'); + + grunt.registerTask('translate', ['i18nextract']); + grunt.registerTask('default', ['translate']); +}; +