Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jshcrowthe/gulp-wc-i18n
https://github.com/jshcrowthe/gulp-wc-i18n
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jshcrowthe/gulp-wc-i18n
- Owner: jshcrowthe
- License: mit
- Created: 2016-01-29T08:34:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T16:39:51.000Z (almost 7 years ago)
- Last Synced: 2024-12-16T04:17:49.647Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
gulp-wc-i18n [![Build Status](https://travis-ci.org/jshcrowthe/gulp-wc-i18n.svg?branch=master)](https://travis-ci.org/jshcrowthe/gulp-wc-i18n)
-----------------------This is the production build pipeline for use with the [wc-i18n](https://github.com/jshcrowthe/wc-i18n) component. This step will parse HTML files looking for `wc-i18n-src` tags with the `locale-dir` property set to `[[localeDir()]]` or ``{{localeDir()}}``.
With all of the discovered files, the corresponding locale files will be inlined so no request is made for the locale files.
## Example Usage
```javascript
var gulp = require('gulp');
var wcI18n = require('gulp-wc-i18n');gulp.task('webcomponent:i18n', function() {
return gulp.src('**/*.html')
.pipe(wcI18n())
.pipe(gulp.dest('./dist'));
});
```## License
MIT