add grunt file to extract translations
This commit is contained in:
parent
a5d02f8bd0
commit
3ad01b44c4
1 changed files with 21 additions and 0 deletions
21
angular_app/Gruntfile.js
vendored
Normal file
21
angular_app/Gruntfile.js
vendored
Normal 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']);
|
||||
};
|
||||
|
Loading…
Reference in a new issue