GithubHelp home page GithubHelp logo

protonuniverse / googletranslate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mantou132/googletranslate

0.0 0.0 0.0 13.94 MB

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

License: GNU General Public License v3.0

JavaScript 3.38% TypeScript 96.62%

googletranslate's Introduction

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 禁止了,试试重新为应用授权。如:图片

开发

# 安装 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

  • 翻译指针位置的单词

googletranslate's People

Contributors

u3u avatar mantou132 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.