Socket
Book a DemoInstallSign in
Socket

crowdin-editor-language-codes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crowdin-editor-language-codes

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

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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 CodeEditor Code
zh-TWzhtw
pt-PTpt
dvdv

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

FAQs

Package last updated on 30 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts