node-red-contrib-baidu-translate

1.0.3 • Public • Published

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.

flow.png

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

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-red-contrib-baidu-translate/

    Package Sidebar

    Install

    npm i node-red-contrib-baidu-translate

    Weekly Downloads

    5

    Version

    1.0.3

    License

    Apache-2.0

    Unpacked Size

    168 kB

    Total Files

    8

    Last publish

    Collaborators

    • q373137461