1.0.3 • Published 3 years ago

node-red-contrib-baidu-translate v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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

abbrname
autoAutomatic detection
zhChinese
enEnglish
yueCantonese
wywClassical Chinese
jpJapanese
korKorean
fraFrench
spaSpanish
thThai
araArabic
ruRussian
ptPortuguese
deGerman
itItalian
elGreek language
nlDutch
plPolish
bulBulgarian
estEstonian
danDanish
finFinnish
csCzech
romRomanian
sloSlovenia
sweSwedish
huHungarian
chtTraditional Chinese
vieVietnamese