Skip to content

RequireSun/i18next-csv-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18next-csv-transformer

Usage

CLI Usage

Usage: i18next-csv-transformer [options] <file ...>

Options:
  -V, --version                output the version number
  --outputFileName <fileName>  the name of output file (.csv)
  -o, --output <path>          path to output
  -h, --help                   output usage information

Examples:

  $ i18next-csv-transformer --output ./dist ./src/locales/**/*.json

gulp

const transformer = require('i18next-csv-transformer');
const vfs = require('vinyl-fs');
const src = [];     // .json file paths

vfs.src(src)
    .pipe(transformer('i18n.csv'))
    .pipe(vfs.dest('./dist'));

附录

整体代码结构有参考 gulp-concat & i18next-scanner.

About

Transformer of converting i18next .json files into a .csv file (use in https://www.locize.io/).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published