initial translations support
This commit is contained in:
parent
811d7b51b9
commit
ba8bd12123
18 changed files with 503 additions and 43 deletions
16
Gruntfile.js
16
Gruntfile.js
|
@ -10,13 +10,27 @@ module.exports = function (grunt) {
|
|||
|
||||
nodeunit: {
|
||||
all: ['test/**/*-test.js']
|
||||
},
|
||||
|
||||
jsxgettext: {
|
||||
test: {
|
||||
files: [{
|
||||
src: ['views/**/*.hbs', 'lib/**/*.js', 'routes/**/*.js', 'services/**/*.js', 'app.js', 'index.js', '!ignored'],
|
||||
output: 'mailtrain.pot',
|
||||
'output-dir': './languages/'
|
||||
}],
|
||||
options: {
|
||||
keyword: ['translate', '_']
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load the plugin(s)
|
||||
grunt.loadNpmTasks('grunt-eslint');
|
||||
grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||||
grunt.task.loadTasks('tasks');
|
||||
|
||||
// Tasks
|
||||
grunt.registerTask('default', ['eslint', 'nodeunit']);
|
||||
grunt.registerTask('default', ['eslint', 'nodeunit', 'jsxgettext']);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue