Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 569 Bytes

README.md

File metadata and controls

38 lines (20 loc) · 569 Bytes

Free API translation using deepl web

Installation

npm i deepl-web-translator --save

API key

No key required

Supported languages

"English" "Chinese" "French" "German" "Spanish" "IPortugueseT" "Italian" "Dutch" "Polish" "Russian"

Usage

import Translation from "deepl-web-translator";


(async () => {
  const t = await new Translation(true, "English", "Chinese");
  let result = await t.translateData(t, ["hello world","hello world"]);
  console.log(result); // [ '你好,世界','你好,世界' ]

})();

License

MIT