grunt-csv-locales
This is a grunt task for the csv-locales module which creates json files with i18n locales for Google Chrome extensions and applications from a CSV file.
Installation
npm install --save-dev grunt-csv-locales
Usage
To create locales use a CSV file which generated from a spreadsheet with this structure.
grunt.initConfig({
csvLocales: {
all: 'locales.csv',
options: {
dirPath: '_locales',
csvParse: {}
}
}
});
grunt.loadNpmTasks('grunt-csv-locales');
Params available
all
- a path to the CSV file with locales.options.dirPath
- a path to the target directory. If it doesn't exist, it will be created.options.csvParse
— a list of options for the CSV parser.