Closed fschucht closed 7 years ago
When using gulp-pug-i18n the localeExtension options is getting ignored and the html files are always created in the schema of filename.locale.html.
gulp-pug-i18n
localeExtension
filename.locale.html
This is my task code:
const PATHS = { dist: 'dist', templates: 'src/templates/*.pug' } gulp.task('translate-templates', () => { const options = { i18n: { dest: PATHS.dist, locales: `${PATHS.dist}/translations/*.json`, localeExtension: false } } return gulp.src(PATHS.templates) .pipe(pugI18n(options)) .pipe(gulp.dest(PATHS.dist)) })
Hi @fschucht it is works. The problem is I made a mistake with the name of the plugin in the other issue and I was not using my plugin.
When using
gulp-pug-i18n
thelocaleExtension
options is getting ignored and the html files are always created in the schema offilename.locale.html
.This is my task code: