# replace-i18n

> Replace internationalization '__' calls with their localized replacements

Latest version **1.0.0** (published 2014-05-12) · BSD license · 0 weekly downloads

## Install

```sh
npm install replace-i18n
pnpm add replace-i18n
yarn add replace-i18n
bun add replace-i18n
```

Provides the command `replace-i18n.js`.

## 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 | 2014-05-12 |
| First published | 2014-05-12 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aria Stewart |
| Maintainers | aredridel |
| Keywords | i18n, esprima |

## Links

- npm: https://www.npmjs.com/package/replace-i18n
- Repository: https://github.com/OnlineBuddies/replace-i18n
- Issues: https://github.com/OnlineBuddies/replace-i18n/issues
- npm.io page: https://npm.io/package/replace-i18n

## Dependencies (5)

- [csv](https://npm.io/package/csv.md) ^0.3.7
- [eswalk](https://npm.io/package/eswalk.md) ^1.0.2
- [esprima](https://npm.io/package/esprima.md) ^1.2.1
- [optimist](https://npm.io/package/optimist.md) ^0.6.1
- [escodegen](https://npm.io/package/escodegen.md) ^1.3.2

## 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) — 2014-05-12

## README

replace-i18n
============

Replaces calls to a function `__` with replacements from a dictionary.

An example. Given a `test.js` like so:

    console.log(__("HELLOWORLDKEY"));

And a `dictionary.tsv` like so:

    "Key"	"English"
    "HELLOWORLDKEY"	"Hello, World"

Running `replace-i18n.js -l en -d dictionary.tsv < test.js > test.en.js` gives an output file like so:

    console.log("Hello, World");

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