Maps supported languages by DeepL
npm install deepl-languages  
Maps the languages currently supported by operations of the DeepL API. The data auto-updates every 3 days, if needed.
``js
const { isLanguageSupported } = require("deepl-languages");
console.log(isLanguageSupported("en"));
// true
`
The raw sets of supported languages, as returned by DeepL API, are made accessible:
`js
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'}, {…}, {…}, …]
`source
Supported types are: & target.
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)`js
const { isLanguageSupported } = require("deepl-languages");console.log(isLanguageSupported("en"));
// true
console.log(isLanguageSupported("en", "source"));
// true
console.log(isLanguageSupported("en-gb", "target"));
// true
``deepl-languages is released under the MIT License. See the bundled LICENSE file for details.