0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Node.js 無料翻訳APIを試す

Posted at
npm install bing-translate-api
sample.js
const { translate } = require('bing-translate-api'); 

// 元の言語は自動判別
translate('今日は', null, 'en', true)
.then(res => console.log(res.translation))
.catch(err => console.error(err));

图片.png

※他の文に変えてもHelloかToday isしか出なかった。
目的はAPIを呼び出す練習なので気にしない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?