1.1.0 • Published 4 years ago

@dgknca/gulp-i18n-pug v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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.html

How to use

...
i18n: {
  dest: 'public',
  locales: 'src/lang/*.*',
  defaultLang: 'en' // <---
},
...