@dgknca/gulp-i18n-pug
v1.1.0
Published
Gulp plugin to compile Pug templates with internationalization support based on JS/JSON/YAML files
Maintainers
Readme
@dgknca/gulp-i18n-pug
Exactly same with gulp-i18n-pug
But there are an extra parameter called defaultLang. If you set defaultLang, the generated HTML files will look like this:
html/
├── tr/
│ └── index.html
├── index.html (english)instead of
html/
├── tr/
│ └── index.html
└── en/
└── index.htmlHow to use
...
i18n: {
dest: 'public',
locales: 'src/lang/*.*',
defaultLang: 'en' // <---
},
...