# jed

> Gettext Style i18n for Modern JavaScript Apps

Latest version **1.1.1** (published 2016-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install jed
pnpm add jed
yarn add jed
bun add jed
```

## 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.1 |
| Published | 2016-07-22 |
| First published | 2012-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 870 |
| Author | Alex Sexton |
| Maintainers | slexaxton |
| Keywords | i18n, Jed, gettext, internationalization |

## Links

- npm: https://www.npmjs.com/package/jed
- Repository: https://SlexAxton@github.com/SlexAxton/Jed
- Homepage: https://github.com/SlexAxton/Jed#readme
- Issues: https://github.com/SlexAxton/Jed/issues
- npm.io page: https://npm.io/package/jed

## 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.1 (latest) — 2016-07-22
- 1.1.0 — 2014-11-04
- 1.0.2 — 2014-09-25
- 1.0.1 — 2014-09-17
- 1.0.0 — 2014-09-17
- 0.5.5 — 2014-09-17
- 0.5.4 — 2013-03-06
- 0.5.2 — 2012-02-27
- 0.5.1 — 2012-02-27
- 0.5.0 — 2012-01-23

## README

[![Build Status](https://secure.travis-ci.org/SlexAxton/Jed.png)](http://travis-ci.org/SlexAxton/Jed)

# Jed

*Gettext Style i18n for Modern JavaScript Apps*

For more info, please visit the docs site at <http://slexaxton.github.com/Jed>.

## You sure you don't want something more modern?

Jed is feature complete in my opinion. I am happy to fix bugs, but generally am not interested in adding more to the library.

I also maintain [messageformat.js](https://github.com/SlexAxton/messageformat.js). If you don't specifically need a gettext implementation, I might suggest using MessageFormat instead, as it has better support for plurals/gender and has built-in locale data.


## Parsing Gettext Files

Jed doesn't include a Gettext file parser, but several third-party parsers exist that can have their output adapted for Jed.

#### Node

Just search the npm repository, there are several PO and MO file parsers available.

#### Browser

[Jed Gettext Parser](https://github.com/WrinklyNinja/jed-gettext-parser) is the only known browser MO file parser, and it also works in Node, and outputs Jed-compatible data directly.

[gettext.js](https://code.google.com/p/gettext-js) and [Pomo.js](https://github.com/cfv1984/pomo) both include browser-compatible PO file parsers.

## Todo

* Build time generation of plural form functions
* Web interface for building translation sets
* Code introspection for default values

## License

Jed is a member project of the [jQuery Foundation](https://jquery.org/)

You may use this software under the MIT License.

You may contribute to this software under the jQuery Foundation CLA - <https://contribute.jquery.org/CLA/>


## Author

* Alex Sexton - @slexaxton - <https://alexsexton.com/>


## Credits

A good chunk of sanity checking was done against the gettext.js tests. That was written by:

* Joshua I. Miller

The sprintf implementation is from:

* Alexandru Marasteanu <alexaholic [at) gmail (dot] com>


## The name

The name jed.js is an homage to Jed Schmidt (<https://github.com/jed>) the JavaScript community member who is a japanese translator by day, and a "hobbyist" JavaScript programmer by night. Give your kids three character names and they'll probably get software named after them too.

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