1.0.1 • Published 8 years ago

gulp-csv-locales v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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