Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xfslove committed Jun 11, 2019
1 parent 32aa25f commit 203653a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,13 @@

## [Changelog](https://github.com/xfslove/alfred-google-translate/releases)

## Notice

for chinese.

2.x版本是支持多种语言翻译的,所以翻译所使用的域名为`translate.google.com`,这个域名目前在大陆无法访问。

因此可以继续使用[1.x版本](https://github.com/xfslove/alfred-google-translate/tree/v1.x).

如果使用2.x版本,需在workflow的环境变量中加入`domain=translate.google.cn`,如下:

![domain.gif](media/domain.gif)

## Usage

Before using this workflow, You must config the language pair. see [alfred-language-configuration](https://github.com/xfslove/alfred-language-configuration)

Alfred workflow Keyword `tr`.

the items explain:
the shown items explain:

The first item is input word or sentence (webster phonetic if avaliable).

Expand All @@ -45,11 +33,29 @@ at the first and second item You can:

if You input wrong word, the workflow will correct your input, and You can press <kbd>enter</kbd> to see.

## Environment Variables

| name | default value | description |
| ---------- | ---------------------------- | ------------------------------------------------------------ |
| domain | https://translate.google.com | if you cannot access the default domain, you can config this. 大陆访问不了默认域名,所以如果使用2.x版本需要将这个变量设置为https://translate.google.cn。或者还是使用[1.x版本](https://github.com/xfslove/alfred-google-translate/tree/v1.x) |
| read | remote | avaliable values: remote: fetch voice from google, local: use macOS local voice (notice: maybe only works on English), none: dont get voice |
| save_count | 20 | limit count of translate history, see [alfred-translate-history](https://github.com/xfslove/alfred-translate-history) |

##### environment variables config snapshot:

![env-config.png](media/env-config.png)

![env.png](media/env.png)

## Hotkey

if you download the workflow, you may lost the hotkey, so you can manual config this, like:
if you download the workflow, you may lost the hotkey, so you can manual config this.

##### hotkey config snapshot:

![hotkey.png](media/hotkey.png)

![hotkey](media/hotkey.gif)
![hotkey-config.png](media/hotkey-config.png)

##### hotkey and largetype snapshot:

Expand Down
Binary file removed media/domain.gif
Binary file not shown.
Binary file added media/env-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/hotkey-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed media/hotkey.gif
Binary file not shown.
Binary file added media/hotkey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 203653a

Please sign in to comment.