svenzhao / var-translation Goto Github PK
View Code? Open in Web Editor NEWvscode变量翻译命名工具
License: Apache License 2.0
vscode变量翻译命名工具
License: Apache License 2.0
Cannot install 'svenzhao.var-translation' extension because of version mismatch in Marketplace: validating: Cannot install 'svenzhao.var-translation' extension because of version mismatch in Marketplace
在插件稳定以后 我个人对于添加翻译引擎的需求不是特别强烈
并且添加一个新的翻译引擎的测试成本较高 我没办法保证我不经常使用的翻译引擎的稳定性
本项目的插件代码不是很复杂,甚至可以说简单,所以有各种添加翻译引擎需求的同学
可以针对自己习惯使用的翻译引擎直接修改
inc/translate.ts中添加新的翻译引擎
package.json中添加configuration.translationEngine的枚举和xxxxSecret配置项
本地测试测试通过就可以pr过来了
点击翻译后,没有任何反应(前段时间用的时候好用)
baidu翻译异常,请检查网络或引擎token配置是否正确 {"error_code":"54000","error_msg":"PARAM_FROM_TO_OR_Q_EMPTY"}
写java的时候也想使用
现在谷歌和bing两个选项都有问题了,如果后续能够添加自定义翻译Api就好了
最新版,vsCode 一直提示 goole 翻译失败。确定网络没问题,同时可以科学上网。
google翻译异常,请检查网络或引擎token配置是否正确 {"message":"connect ETIMEDOUT 142.251.42.238:443","name":"Error","stack":"Error: connect ETIMEDOUT 142.251.42.238:443\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)","config":{"url":"https://translate.google.com","headers":{"Accept":"application/json, text/plain, /","User-Agent":"axios/0.21.4"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"method":"get"},"code":"ETIMEDOUT"
引擎异常,翻译失败,请检查网络重启
{"code":"BAD_REQUEST"}
这个问题怎么破?
翻译引擎变为只有Google并且翻译失败,导致功能不可用
alt shift +t 无反应
自 2022 年 9 月 28 日起,谷歌翻译退出了**市场,具体表现为 https://translate.google.cn/ 打开后会显示 translate.google.com.hk,不再是真正的谷歌翻译网站,这也导致划词翻译里的谷歌翻译不能正常使用了
主要想用来替代谷歌翻译
现在使用发现,不能将中文变量翻译成英文了,那就有点硬伤啦,先用翻译软件翻译,然后再转换格式
求看
提供个快捷键把英文一键翻译成中文吧,保留里面的数字和_这些
还有能不能提供一个中文->英文一键翻译功能,快捷键就用alt+shift+T就行,多一个选项
写注释的时候很需要
google翻译异常,请检查网络或引擎token配置是否正确 {"code":"BAD_NETWORK"}
但是我访问谷歌翻译的速度特别快,引擎token是要在哪里设置吗?
baidu翻译异常,请检查网络或引擎token配置是否正确 {"error_code":"52003","error_msg":"UNAUTHORIZED USER"}
问题:cmd + shift + t 这个翻译快捷键 与vscode打开上一次关闭的文件 快捷键冲突
需求:能改成 cmd + option + t 或者可以自定义快捷键吗
右键菜单没有了
可以参考插件Sort lines,插件很棒,感谢~
在之前的版本中使用都正常
以前是可以翻译的,最近一直提示链接谷歌失败,看了一下readme新增了很多翻译引擎,但是没有写要怎么更换,麻烦排查一下,谢谢
{"error_code":"54000","error_msg":"PARAM_FROM_TO_OR_Q_EMPTY"}
填了id密钥,确认没错,但显示错误码54000 ,有什么参数空了?
希望支持有道翻译,还有一个问题能不能修改自定义快捷键
需求:添加deepl翻译API秘钥💡,个人感觉deepl更准确😄
@SvenZhao
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.