Skip to content

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

Notifications You must be signed in to change notification settings

crowdin-node/crowdin-editor-language-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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.

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

For more details, see test.js or the raw data in codes.json.

Tests

npm install
npm test

License

MIT

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published