Skip to content

Commit

Permalink
add i18next scanner grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
outofambit committed Jan 5, 2020
1 parent 76d6c12 commit cc71c12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,20 @@ module.exports = grunt => {
'./docs/reference/data.min.json': './docs/reference/data.json'
}
}
},
i18next: {
dev: {
sort: true,
src: 'src/**/*.js',
dest: 'assets',
options: {
lngs: ['en'],
resource: {
loadPath: 'i18n/{{lng}}/{{ns}}.json',
savePath: 'i18n/{{lng}}/{{ns}}.json'
}
}
}
}
};

Expand Down Expand Up @@ -456,6 +470,7 @@ module.exports = grunt => {
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-simple-nyc');
grunt.loadNpmTasks('i18next-scanner');

// Create the multitasks.
grunt.registerTask('build', [
Expand Down

0 comments on commit cc71c12

Please sign in to comment.