Skip to content

373137461/node-red-contrib-baidu-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-contrib-baidu-translate

Node-RED node for Baidu Translate
百度翻译 for Node-RED
npm version GitHub version
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published