What’s dictcc-js? :de::us:

An unofficial API for dict.cc. It’s a European language dictionary that was originally meant for German-English.

Table of Contents

The following is taken shamelessly from my Github README.

Installation

Run npm install dictcc-js.

Documentation

Current dictcc-js only has one function, translate

translate takes 4 arguments:

Either the from or to argument must be either “en” or “de”

1
2
3
4
5
6
dictcc = require('dictcc-js');
dictcc.translate("en", "de", "term", (res, err) => {
  res.forEach((val, ind, arr) => {
    console.log(val.from + " = " + val.to);
  });
});

Troubleshooting

Make sure the languages you’re translating are supported. Currently supported languages only include:

Contribute at the Github Repo