Skip to content

🌍 Google 翻译客户端,使用快捷键翻译选中的文本,安装浏览器扩展也可以在浏览器中使用上下文菜单翻译

License

Notifications You must be signed in to change notification settings

mantou132/GoogleTranslate

 
 

Repository files navigation

Goolge Translate

GitHub release Build Status LICENSE GPL Code Style: Prettier

应用程序主界面

使用方式

  • 安装浏览器扩展,在浏览器中选择文本,使用上下文菜单进行翻译
  • 在任意应用中选择文本,默认使用 command/ctrl + q 进行翻译
  • 在窗口内使用快捷键:
    esc - 关闭窗口
    enter - Google 翻译页面聚焦到输入框
    command + 1 - 朗读源文本
    command + 2 - 朗读翻译文本
    command + 3 - 复制翻译文本
    command + s - 保存/撤销保存翻译
    command + i - 登陆 Google 账号
    command + o - 登出 Google 账号
    command + shift + w 连续按两次 - 退出应用

下载

您可以在这里手动下载最新版本

FAQ

Q:MacOS 下为什么 command + q 打开翻译窗口没有自动填充选择的文本?
A:可能被 OS 禁止了,试试重新为应用授权。如:图片

开发

# 同步子模块
git submodule update --remote --init
# 安装 rust 环境

# 安装项目依赖
npm i
# 将 ts 转成 js
npm run watch
# 以开发模式启动项目
npm start

如有网络问题不能 build, 可以为 npm 设置代理:

# 如果只有 socks 代理,需要将 socks 代理转成 http 代理
# https://www.npmjs.com/package/http-proxy-to-socks
hpts -s 127.0.0.1:10808 -p 1080

npm config set proxy http://127.0.0.1:1080
npm run build
npm config delete proxy

TODO

  • 翻译指针位置的单词

About

🌍 Google 翻译客户端,使用快捷键翻译选中的文本,安装浏览器扩展也可以在浏览器中使用上下文菜单翻译

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.4%
  • JavaScript 3.6%