Coder Social home page Coder Social logo

youdaotranslate's Introduction

YoudaoTranslate | 有道翻译

screenshot_1

一、 特性

1. 中英文自动互翻

支持 CamelCase 驼峰短语翻译

2. 多语言支持

可以识别中文、英文、日文、韩文、法文、西班牙文、葡萄牙文、俄文、越南文、德文、阿拉伯文、印尼文、意大利文,其他语种无法识别

多语言

3. 快捷键支持

  • 双击 ⌥ Alt 可以翻译选中内容 (在 Hotkey 中设置)

  • ⇧ Shift + Space 可以直接唤出翻译输入框(在 Hotkey 中设置)

4. 英文发音

  • ⌘ Command + ↩︎ Enter 本地发音(系统 Say 命令)
  • ⌥ Alt + ↩︎ Enter 调用有道在线语音发音
  • 在音标上回车发音并关闭窗口

screenshot_3

5. 生词本功能

Ctrl + ↩︎ Enter 加入生词本

screenshot_3

6. 在选项上 ↩︎ Enter 回车复制翻译结果

7. yd * 查询最近的翻译记录

transalte_history

8. 翻译结果上按 ⇧ Shift 直接预览有道网页

screenshot_4

9. 输入 update 检查更新 Workflow

updae

二、开始使用

1. 下载导入使用

2. 使用源码

$ git clone https://github.com/wensonsmith/YoudaoTranslate.git /path/to/YoudaoTranslate
// 请注意这里是 Alfred 3 的路径
$ ln -s /path/to/YoudaoTranslate/src/ ~/Library/Application\ Support/Alfred\ 3/Alfred.alfredpreferences/workflows/YoudaoTranslate

以后只需要进入 /path/to/YoudaoTranslate 进行 git pull 即可更新

三、 配置有道翻译

2017年9月3日更新 由于有道翻译 api 迁移到了有道智云,所以大家需要去有道智云进行注册然后创建应用了

  1. 注册有道智云帐号

  2. 创建一个自然语言翻译服务

  3. 创建一个有道云应用并绑定第二步创建的服务

  4. 这样就可以获得应用(appKey)和密钥(secret)了

    应用 - 应用详情 - 应用ID appKey, 应用密钥 secret

  5. 把变量填入 workflow 右上角的 [X] 点开后的配置框中

var-config-step-1

  1. 如果要使用生词本功能,请填写网易账户。注意网易账户上面是密码,下面是账户

var-config-step-2

四、Contributors

五、 使用库和参考资料

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.