add grunt file to extract translations

This commit is contained in:
Davide Alberani 2015-05-16 13:11:35 +02:00
parent a5d02f8bd0
commit 3ad01b44c4

21
angular_app/Gruntfile.js vendored Normal file
View file

@ -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']);
};