# gulp-i1337n

> Static i18n for Gulp! :fire:

Latest version **1.0.0** (published 2017-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-i1337n
pnpm add gulp-i1337n
yarn add gulp-i1337n
bun add gulp-i1337n
```

## 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.0.0 |
| Published | 2017-07-27 |
| First published | 2017-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | oreqizer |
| Maintainers | oreqizer |
| Keywords | i18n, gulp |

## Links

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

## Dependencies (6)

- [babylon](https://npm.io/package/babylon.md) ^6.17.4
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [babel-types](https://npm.io/package/babel-types.md) ^6.25.0
- [babel-traverse](https://npm.io/package/babel-traverse.md) ^6.25.0
- [babel-generator](https://npm.io/package/babel-generator.md) ^6.25.0

## 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.0.0 (latest) — 2017-07-27
- 0.1.0 — 2017-07-27
- 0.0.4 — 2017-07-27
- 0.0.3 — 2017-07-27
- 0.0.2 — 2017-07-27
- 0.0.1 — 2017-07-27
- 0.0.0 — 2017-07-27

## README

# gulp-i1337n

[![Build Status](https://travis-ci.org/oreqizer/gulp-i1337n.svg?branch=master)](https://travis-ci.org/oreqizer/gulp-i1337n)
[![codecov](https://codecov.io/gh/oreqizer/gulp-i1337n/branch/master/graph/badge.svg)](https://codecov.io/gh/oreqizer/gulp-i1337n)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![npm (scoped)](https://img.shields.io/npm/v/gulp-i1337n.svg)](https://www.npmjs.com/package/gulp-i1337n)

A [gulp](https://gulpjs.com/) plugin for static translations. Uses [babylon](https://github.com/babel/babylon) under the hood. 

### Install

```
yarn add gulp-i1337n --dev
```

## Usage

```js
const gulp = require('gulp');
const i1337n = require('gulp-i1337n');

gulp.task('default', () =>
  gulp
    .src('src/app.js')
    .pipe(i1337n({ hello: 'World!' }))
    .pipe(gulp.dest('dist'))
);
```

Turns this:
```js
function greet() {
  console.log(__('hello'));
}
```

into this:
```js
function greet() {
  console.log('World!');
}
```

## API

Simply _pipe_ the package's export.

### i1337n(translations[, options])

**translations**

Your object of translations. Keys are replaced with values. Value *must* be a string.

**options** (optional)

Two properties:
* `func` (_string_) - the function name to search for, default `__`
* `strict` (_boolean_) - should the plugin fail on missing translation

## License

MIT

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