Make sure you have puppeteer
, puppeteer-extra
and puppeteer-extra-plugin-stealth
installed in your system before using this
> npm i dragokyun
const dragokyun = require('dragokyun');
translate('text to translate', 'source language', 'translate language');
const dragokyun = require('dragokyun');
(async () => {
let text = `昔の素材を切り貼りして音楽を担当してます中野さんとは @suzukitakayuki_atelier のインスタレーション以来のコラボ。映像作品もまたやりたいな`
let output = await dragokyun.translate(text, 'ja', 'en');
console.log(output)
})();
- Oii, it can translate texts without source language too, it will detect i hope uwu*