@dgknca/gulp-i18n-pug

1.1.0 • Public • Published

@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' // <---
},
...

Package Sidebar

Install

npm i @dgknca/gulp-i18n-pug

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • dgknca