# crowdin-editor-language-codes

> A mapping of unique language codes used in Crowdin's web editor URLs

Latest version **1.0.0** (published 2018-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install crowdin-editor-language-codes
pnpm add crowdin-editor-language-codes
yarn add crowdin-editor-language-codes
bun add crowdin-editor-language-codes
```

## 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 | 2018-03-30 |
| First published | 2018-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 187 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zeke |

## Links

- npm: https://www.npmjs.com/package/crowdin-editor-language-codes
- npm.io page: https://npm.io/package/crowdin-editor-language-codes

## Recent versions

- 1.0.0 (latest) — 2018-03-30

## README

# crowdin-editor-language-codes 

> A mapping of unique language codes used in Crowdin's web editor URLs

Crowdin uses a set of non-standard language codes in some of its URLs. These are different from [Crowdin Language Codes]:

![crowdin-url-example](https://user-images.githubusercontent.com/2289/38150527-2b007a96-3414-11e8-8eaf-ccd3dec732b3.png)

These "editor codes" cannot consistently be derived from [Crowdin Language Codes], and there's not currently a Crowdin API for collecting the editor codes, so this module exists to fill the gap.

Examples:

Language Code | Editor Code
------------- | -----------
zh-TW         | zhtw
pt-PT         | pt
dv            | dv

## Installation

```sh
npm install crowdin-editor-language-codes
```

## Usage

The module exports a key-value object. The keys are [Crowdin Language Codes] like `zh-TW`, and the values are objects containing the editor code.

```js
const codes = require('crowdin-editor-language-codes')
```

For more details, see [test.js](test.js) or the raw data in [codes.json](codes.json).

## Tests

```sh
npm install
npm test
```

## License

MIT

[Crowdin Language Codes]: https://support.crowdin.com/api/language-codes/

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