i18next.scanner.js 503B

123456789101112131415
  1. const scanner = require('i18next-scanner')
  2. const vfs = require('vinyl-fs')
  3. const option = require('../i18next.option.js')
  4. // --------------------
  5. // 2018/07/27 - currently, last version is 2.6.5 but a bug is spaming log with errors. So I'm using 2.6.1
  6. // this issue seems related : https://github.com/i18next/i18next-scanner/issues/88
  7. // --------------------
  8. vfs.src(['./src/**/*.jsx'])
  9. // .pipe(sort()) // Sort files in stream by path
  10. .pipe(scanner(option))
  11. .pipe(vfs.dest('./i18next.scanner'))