grunt-i18n-collect

0.1.1 • Public • Published

grunt-i18n-collect

Collect i18n keys from sources

Installation

//Gruntfile.js
module.exports = function (grunt) {
    grunt.initConfig({
        i18nCollect: {
            options: {
                locales: ['en', 'ru', 'uk'],
                method: 'translate'
            },
            app: {
                files: [
                    {
                        src: [
                            'src/**/*.js'
                        ],
                        dest: 'src/i18n'
                    }
                ]
            }
        }
    });
    
    grunt.loadNpmTasks('grunt-i18n-collect');
 
    //... your Grunt tasks
};

Readme

Keywords

Package Sidebar

Install

npm i grunt-i18n-collect

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • webschik