Skip to content

drfisher/gulp-csv-locales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-csv-locales

This is a gulp 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 gulp-csv-locales

Usage

To create locales use a CSV file which generated from a spreadsheet with this structure.

var csvLocales = require('gulp-csv-locales');

gulp.task('csvLocales', function () {
  return csvLocales({
    csvPath: 'tmp/locales.csv',
    dirPath: 'tmp/_locales',
    csvParse: {}
  });
});

Params available

  • csvPath - a path to the CSV file with locales.
  • dirPath - a path to the target directory. If it doesn't exist, it will be created.
  • csvParse — a list of options for the CSV parser.

License

MIT

About

This is a gulp task for the csv-locales module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published