git clone https://github.com/auphone/wordwise-translation-server.git
cd wordwise-translation-server
npm install
npm run build
node dist/index.js
Return the number of levels available in translation server
{
level: 3
}
Filter and translate difficult words by specific level
{
"level": 3,
"words": [ "apple", "cappuccino" ],
"lang": "zh-tw"
}
{
"cappuccino": "熱奶咖啡"
}
- Array of words to be filtered / translated
- Level 1-3, level 1 will translate almost all words except stop words
- Default:
1
- Any language code supported by google translate
- Default:
zh-tw
- A super simple and configurable password in
config.json
to restrict the use of translate API
https://github.com/auphone/wordwise-chrome-extension.git
ISC
Good luck!