node-red-contrib-baidu-translate 1.0.3

百度翻译 Node-RED node for Baidu Translate

npm install node-red-contrib-baidu-translate

node-red-contrib-baidu-translate

Node-RED node for Baidu Translate 百度翻译 for Node-RED

Now you can choose the language using the payload!

Based on This package

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-baidu-translate

Example

String data in msg.payload will be translated into language specified in node property.

https://raw.githubusercontent.com/373137461/node-red-contrib-baidu-translate/master/flow.png

More than 100 languages are supported in the Baidu Translate node.

https://raw.githubusercontent.com/373137461/node-red-contrib-baidu-translate/master/property.png

Usage

Translate from German to English. This will result poision.

msg.payload.to = 'en';
msg.payload.from = 'zh';
msg.payload.phrase = 'English';

Language codes

abbr name
auto Automatic detection
zh Chinese
en English
yue Cantonese
wyw Classical Chinese
jp Japanese
kor Korean
fra French
spa Spanish
th Thai
ara Arabic
ru Russian
pt Portuguese
de German
it Italian
el Greek language
nl Dutch
pl Polish
bul Bulgarian
est Estonian
dan Danish
fin Finnish
cs Czech
rom Romanian
slo Slovenia
swe Swedish
hu Hungarian
cht Traditional Chinese
vie Vietnamese

Node Info

Version: 1.0.3
Updated 4 years ago
License: Apache-2.0
Rating: 3.0 2

Categories

Actions

Rate:

Downloads

3 in the last week

Nodes

  • baidu-translate

Keywords

  • node-red
  • baidu
  • translate
  • baidu translate

Maintainers