Skip to content

drfisher/grunt-csv-locales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

License

MIT

About

This is a grunt task for the csv-locales module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published