123456789101112131415 |
- const scanner = require('i18next-scanner')
- const vfs = require('vinyl-fs')
-
- const option = require('../i18next.option.js')
-
- // --------------------
- // 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
- // this issue seems related : https://github.com/i18next/i18next-scanner/issues/88
- // --------------------
-
- vfs.src(['./src/**/*.jsx'])
- // .pipe(sort()) // Sort files in stream by path
- .pipe(scanner(option))
- .pipe(vfs.dest('./i18next.scanner'))
|