Skip to content

Commit cc71c12

Browse files
committed
add i18next scanner grunt task
1 parent 76d6c12 commit cc71c12

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Gruntfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,20 @@ module.exports = grunt => {
407407
'./docs/reference/data.min.json': './docs/reference/data.json'
408408
}
409409
}
410+
},
411+
i18next: {
412+
dev: {
413+
sort: true,
414+
src: 'src/**/*.js',
415+
dest: 'assets',
416+
options: {
417+
lngs: ['en'],
418+
resource: {
419+
loadPath: 'i18n/{{lng}}/{{ns}}.json',
420+
savePath: 'i18n/{{lng}}/{{ns}}.json'
421+
}
422+
}
423+
}
410424
}
411425
};
412426

@@ -456,6 +470,7 @@ module.exports = grunt => {
456470
grunt.loadNpmTasks('grunt-karma');
457471
grunt.loadNpmTasks('grunt-contrib-clean');
458472
grunt.loadNpmTasks('grunt-simple-nyc');
473+
grunt.loadNpmTasks('i18next-scanner');
459474

460475
// Create the multitasks.
461476
grunt.registerTask('build', [

0 commit comments

Comments
 (0)