Free API translation using deepl web
npm i deepl-web-translator --save
No key required
"English" "Chinese" "French" "German" "Spanish" "IPortugueseT" "Italian" "Dutch" "Polish" "Russian"
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); // [ '你好,世界','你好,世界' ]
})();
MIT