https://github.com/arvis-workflows/arvis-google-translate
Arvis workflow to translate with google translate api
https://github.com/arvis-workflows/arvis-google-translate
arvis arvis-workflow arvish google-translate
Last synced: 3 days ago
JSON representation
Arvis workflow to translate with google translate api
- Host: GitHub
- URL: https://github.com/arvis-workflows/arvis-google-translate
- Owner: arvis-workflows
- License: mit
- Created: 2021-07-06T11:26:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T04:01:14.000Z (almost 5 years ago)
- Last Synced: 2025-04-09T17:01:30.902Z (about 1 year ago)
- Topics: arvis, arvis-workflow, arvish, google-translate
- Language: JavaScript
- Homepage:
- Size: 4.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# arvis-google-translate
[](https://nodei.co/npm/arvis-google-translate/)
### JetBrains' support
[](https://www.jetbrains.com/?from=arvis-google-translate)
## Installation
To use this workflow you must also install the [arvis-language-configuration](https://github.com/jopemachine/arvis-language-configuration) workflow, and configure the language pair. See that [README](https://github.com/jopemachine/arvis-language-configuration) for instructions.
* Voice feature not supported yet.
### With NPM
- Install with `npm install -g arvis-google-translate`.
## Usage
arvis workflow Keyword: `tr [word or sentence]`
Example: `tr kitchen sink` or `tr Hello, my name is arvis`
When translating a word you will see the translation as well as alternate translations if available.
With the first two results (which are the input word and the translation) you can…
- press enter to read the item.
- press cmd+C to copy the item.
- press shift open the translate website.
- press cmd+L to show the translation in large text.
The workflow will attempt to correct spelling mistakes which can be accepted with enter.
## 🔗 This workflow is converted from [alfred-workflow](https://github.com/xfslove/alfred-google-translate).
* Note that there might be some code change or different actions from the original workflow.
* Marked original workflow's creator to author.
## 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/arvis-google-translate/tree/v1.x) |
| voice | remote | avaliable values:
remote: fetch voice from google,
local: use macOS local voice (notice: maybe only works on English),
none: dont use voice |
| save_count | 20 | limit the translation history, see [arvis-translate-history](https://github.com/xfslove/arvis-translate-history).
a value of 0 will keep no history |
| socks_proxy| - | not turned by default. you can specify local or remote socks proxy. format: `socks://{host}:{port}` example: local shadowsocks proxy 'socks://127.0.0.1:1086' |
#####
## Screenshots


- press enter to read or cmd+C to copy

- press shift to open the translation website

- press cmd+L to show the translation in large text [like this](#hotkey-and-largetype-snapshot).
## License
MIT ©