当前位置:网站首页>Wet- a good choice for people with English difficulties - console translation
Wet- a good choice for people with English difficulties - console translation
2022-07-25 21:56:00 【A touch of sunshine &】
brief introduction
A tool that can really improve my efficiency , It is also the first satisfactory tool developed by myself .
Wet
wet --》 we-translate
VSCode The translation plug-in of is still very useful , But it can only be translated from English to Chinese ( Maybe I didn't find ).
It's hard to think of the English name of the variable , You have to reopen Youdao or browser for translation , And the console / The command line is great 、 A platform that can improve efficiency , So there is wet.
Use
npm install -g wet-tool
| command command | explanation explain |
|---|---|
| wet Hello | english -> chinese |
| wet Hello | chinese -> english |
| wet Hello (-D | --dest) zh | Translate into Chinese |
| wet hello -E2C | --en2cn | Specify the translation mode, such as English to Chinese |
- The specified translation mode needs to be improved
- If translation is not specified, it defaults to : Translation from Chinese to English - In English translation

Output
Do not specify translation Default Translation from Chinese to English | In English translation
$ wet hi hi hi hi hi hi hi hi
original text hi hi hi hi hi hi hi hi
de To zh Hello Hello Hello Hello Hello Hello Hello Hello
Assign translation to classical Chinese
$ wet future -D wyw
original text future
zh To wyw post-apocalyptic
To configure
Because Baidu translation standard edition calls are limited ( One second ), So in order to have a good experience, you'd better apply for personal appid.
- Apply for Baidu translation
Baidu translation open platform (baidu.com)
- Configure individual
salt & appid & secret
{
"servicer": "BAIDU",
"salt": "azin-cn",
"BAIDU": {
"appid": "20210921000952000",
"secret": "7KIut5cwuDYzB6rC9MCj",
"api": "https://fanyi-api.baidu.com/api/trans/vip/translate"
}
}
Project summary
http/https modular
- Be careful IncomingMessage And Response The difference between , Sender and receiver
- The sender must explicitly call end perhaps close Function to close
- Provided in the module get By default, the function will call close, therefore Response Type of req Variables can be closed manually .
- IncomingMessage Is not necessarily req, It could be res,Response Empathy .
qs.stringify() It has been coded , Do not use encodeURL Re code
console.log() Colorful black
Future
More translation options will be added in the future
- bing
- youdao
Welcome to tell me issue
Reference resources
- -D | --dest You can specify the following parts ( Quote Baidu )
| name | Code | name | Code | name | Code |
|---|---|---|---|---|---|
| Automatic detection | auto | chinese | zh | English | en |
| Cantonese | yue | classical Chinese | wyw | Japanese | jp |
| Korean | kor | French | fra | Spanish | spa |
| Thai, | th | The Arabic language | ara | Russian | ru |
| Portuguese | pt | German | de | Italian | it |
| Greek | el | Dutch | nl | Polish language | pl |
| Bulgarian | bul | Estonian | est | Danish language | dan |
| Finnish language | fin | Czech | cs | romanian | rom |
| Slovenian | slo | Swedish language | swe | Hungarian | hu |
| Traditional Chinese | cht | Vietnamese | vie |
边栏推荐
- Share | intelligent fire emergency management platform solution (PDF attached)
- [fan Tan] those stories that seem to be thinking of the company but are actually very selfish (I: building wheels)
- [test development methodology] experience of test development platform PK - choice
- 【GO基础02】第一个程序
- Create files, file permissions, ownership, and sticky bits
- 如何快速搭建图片服务器[通俗易懂]
- Redis为何选择单线程?
- Redis是什么?简述它的优缺点
- JSP初识
- Does the open source agreement have legal effect?
猜你喜欢

8000 word super detailed custom structure type

【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)

开源的RSS订阅器FreshRSS

新版Maixhub部署(V831与K210)

分享|智慧消防应急管理平台解决方案(附PDF)
![PHP zero time task, PHP laravel time task schedule [dry goods]](/img/09/c9a4c83fe23c852aa76a6f5a6cea52.png)
PHP zero time task, PHP laravel time task schedule [dry goods]

Redis 使用详解

动画曲线天天用,你能自己整一个吗?看完这篇你就会了!
![[database] conceptual design, logical design, relational database design theory](/img/4d/be7ab21c98fc1bf4b63e4abe22d9fc.png)
[database] conceptual design, logical design, relational database design theory

【leetcode天梯】链表 · 021 合并两个有序链表
随机推荐
ansible+Crontab批部署巡检
【面试:并发篇24:多线程:综合练习】顺序控制
Redis 使用详解
dovecot 设置邮箱quota
Bitcoin.com:USDD代表了真正去中心化稳定币
6-17漏洞利用-反序列化远程命令执行漏洞
磁盘空间的三种分配方式
mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
如何用 Redis 实现分布式锁的?
【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)
如何快速搭建图片服务器[通俗易懂]
动画曲线天天用,你能自己整一个吗?看完这篇你就会了!
[leetcode ladder] linked list · 876 find the middle node of the linked list
Oxford University: many common insomnia drugs lack long-term safety data
【面试:并发篇25:多线程:volatile】可见性
Guiding principles of information security construction
QT | learn about QT creator by creating a simple project
Preliminary study on Tesseract OCR
Jmeter---设置代理录制请求
[fan Tan] in detail: lower control, upward management, upward drawing cake.