# gulp-wc-i18n

> A gulp script that will inline locales for each component

Latest version **1.1.0** (published 2016-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-wc-i18n
pnpm add gulp-wc-i18n
yarn add gulp-wc-i18n
bun add gulp-wc-i18n
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-10-10 |
| First published | 2016-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Josh Crowther |
| Maintainers | jshcrowthe |
| Keywords | gulp, i18n, gulpplugin, webcomponents, polymer, internationalization |

## Links

- npm: https://www.npmjs.com/package/gulp-wc-i18n
- Repository: https://github.com/jshcrowthe/gulp-wc-i18n
- Homepage: https://github.com/jshcrowthe/gulp-wc-i18n#readme
- Issues: https://github.com/jshcrowthe/gulp-wc-i18n/issues
- npm.io page: https://npm.io/package/gulp-wc-i18n

## Dependencies (6)

- [q](https://npm.io/package/q.md) ^1.4.1
- [dom5](https://npm.io/package/dom5.md) ^1.3.1
- [glob](https://npm.io/package/glob.md) ^6.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [ast-query](https://npm.io/package/ast-query.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-10-10
- 1.0.0 — 2016-02-17

## 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

---
_Source: https://npm.io/package/gulp-wc-i18n · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
