Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fbjorn/translate-workflow
Alfred workflow for translating text and making dictionary lookup ๐ต๏ธโโ๏ธ
https://github.com/fbjorn/translate-workflow
alfred alfred-workflow translate yandex yandex-translate
Last synced: about 1 month ago
JSON representation
Alfred workflow for translating text and making dictionary lookup ๐ต๏ธโโ๏ธ
- Host: GitHub
- URL: https://github.com/fbjorn/translate-workflow
- Owner: fbjorn
- License: mit
- Created: 2020-09-22T07:19:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T21:00:41.000Z (about 4 years ago)
- Last Synced: 2024-11-07T13:27:44.458Z (3 months ago)
- Topics: alfred, alfred-workflow, translate, yandex, yandex-translate
- Language: Python
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# translate-workflow
Alfred workflow for translating text and making dictionary lookup.
Built on top of Yandex Dictionary API and Yandex Translate API.
## Features
- Automatic translation from Russian to English and vice versa
- Show synonyms and examples when translating a word
- Correct spelling errors
- Triggered both by `t` (eng) and `ะต` (rus) prefix
- Global hotkey for translation of the selected textExamples:
![English to Russian](./examples/eng-rus.png)
![Russian to English](./examples/run-eng.png)
![Spelling correction](./examples/wrong.png)## Installation
[Download](https://github.com/fbjorn/translate-workflow/releases/) Alfred
workflow and open it## Configuration
Before start using this awesome workflow, you need to proceed with following
steps:#### To enable words translation:
1. Obtain Dictionary [API key](https://yandex.ru/dev/dictionary/keys/get/). It's
free
2. Invoke Alfred and type `tset `. Choose _Save as Dictionary Api Key_#### To enable text translation:
1. This step requires paid account on
[Yandex.Cloud](https://cloud.yandex.ru/docs/translate/). It's extremely cheap
for amateur usage of Translate API though.
2. Go to cloud console and create a service account with `editor` role.
3. Generate
[API Token](https://cloud.yandex.com/docs/iam/operations/api-key/create) for
this service account
4. Invoke Alfred and type `tset `. Choose _Save as Translate Api Token_> Note: All your keys and tokens are stored in the OSX Keychain securely
## Usage
Just type `t ` or `t ` and you'll get the input translated
## Local development
```bash
make
```It will create a `translate-workflow` folder in your default Alfred installation
and add all required source files as symlinks.Then just open Alfred on Workflows tab and you'll find it.
### TODO:
- Store desired languages in local settings
- Auto detect source language
- Cache API Keys to not access OSX Keychain every time
- Cache API responses locally---
Made with
[alfred-python-template](https://github.com/fbjorn/alfred-python-template)Icons made by
photo3idea_studio
from www.flaticon.com