🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more →
Socket
Book a DemoInstallSign in
Socket

deepl-languages

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepl-languages

Maps supported languages by DeepL

latest
Source
npmnpm
Version
0.1.15
Version published
Maintainers
1
Created
Source

DeepL Languages

Build Status Version Downloads

Maps the languages currently supported by operations of the DeepL API. The data auto-updates every 3 days, if needed.

Usage

const { isLanguageSupported } = require("deepl-languages");

console.log(isLanguageSupported("en"));
// true

API

Access to supported languages

The raw sets of supported languages, as returned by DeepL API, are made accessible:

const { source } = require("deepl-languages");

console.log(source);
// [{language: 'BG', name: 'Bulgarian'}, {…}, {…}, …]

// OR
const deepL = require("deepl-languages");

console.log(deepL.dataSource);
// [{language: 'BG', name: 'Bulgarian'}, {…}, {…}, …]

Supported types are: source & target.

Check if a language is supported

isLanguageSupported(code, type) returns whether a language is supported or not:

  • code must be a BCP 47 language tag, as per ISO 3166-1
  • type must be either source or target (defaults to source)
const { isLanguageSupported } = require("deepl-languages");

console.log(isLanguageSupported("en"));
// true

console.log(isLanguageSupported("en", "source"));
// true

console.log(isLanguageSupported("en-gb", "target"));
// true

License

deepl-languages is released under the MIT License. See the bundled LICENSE file for details.

Keywords

deepl

FAQs

Package last updated on 07 Nov 2025

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