Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dev99problems/alfred-translayta

Alfred Translation workflow for en-uk, uk-en translations
https://github.com/dev99problems/alfred-translayta

alfred alfred-translayta alfred-workflows alfy favorites language translate translation ukrainian

Last synced: 11 days ago
JSON representation

Alfred Translation workflow for en-uk, uk-en translations

Awesome Lists containing this project

README

        

# alfred-translayta

![version] ![MIT][license] ![last-commit]

[version]: https://img.shields.io/npm/v/alfred-translayta
[license]: https://img.shields.io/badge/license-MIT-blue.svg
[last-commit]: https://img.shields.io/github/last-commit/dev99problems/alfred-translayta

> **Translate** with Google Translate in Alfred (*en-uk* / *uk-en*). **Save** to favorites. Practice **learning** the words.

Alfred Translayta is an ***Alfred workflow***, which lets you easily translate πŸ‡ΊπŸ‡¦ πŸ”„ πŸ‡¬πŸ‡§ , save words to favorites and have convenient way to review and memorize them later.

## Features
### Translation
* ***Auto-detection*** of the translation direction
* Correction of *misspelled words*
* Foremost app ***selected text translation***
* ***Pasting*** translation into the foremost app
* ***Copying*** translation into the clipboard
* ***Local caching*** of the last translation response

### Favorites
* *Add/Edit/Delete* favorites
* *Learning* mode
* *Search* through normal/learning mode
* *Import/Export* favorites from/to local file

## Prerequisites
* [Node.js 14](https://nodejs.org) or higher
* [Alfred (3,4,5)](https://www.alfredapp.com/)
* [Alfred Powerpack License](https://www.alfredapp.com/powerpack/)

## Install
```
$ npm install --global alfred-translayta
```

## Usage

Open Alfred and type `t` **or** press `Cmd+Shift+K` to activate workflow

Translate/Auto-correction

* start typing phrase in English or Ukrainian

* hit `Enter` on list item with `auto-correction` suggestion

* enter ` ` (2 spaces) to get latest search results out of cache

* select any word of phrase and hit `Cmd-Shift-K` to get translation

![translate](https://user-images.githubusercontent.com/6503508/209795649-5709bbee-03d0-4ec9-9551-4c2b3f329b38.gif)

Copy/Paste

* navigate to any translation and hit `Enter` to copy to `clipboard`

* navigate to any translation and hit `Shift-Enter` to paste it into the `foremost` application

![copy_pasting](https://user-images.githubusercontent.com/6503508/209795746-3ae68798-ae0c-45d3-bcea-4cd67bb9e093.gif)

Favorites

* navigate to the item named `/add` and hit `Enter` to add word to `Favs`

* to get access to your `Favs` list enter `.` in workflow, aka `t .`

* to edit/remove/copy any word from the list hit `Enter` on any item in your `Favs` list

![favs](https://user-images.githubusercontent.com/6503508/209795783-a8363c7f-30f4-4024-bd8b-102e0475f463.gif)

Learning mode

* to activate learning mode for your `Favs`, enter `..`, aka `t ..`

* in both `Favs` and `Learning` modes you can search by typing after `..`,
e.g. `t ..brick` or `t .. brick` will filter the list

* in `Learning` mode you can navigate to any item and press and hold `Option` key to make it's translation visible

![learning](https://user-images.githubusercontent.com/6503508/209795969-4bb2c246-bd55-4621-a10a-27e5542b74ef.gif)

## HotKeys

`Cmd+Shift+K` β€” to open workflow main window

`Cmd+Shift+J` β€” to open favorites list (shortcut for `Cmd+Shift+K` + and entered `.`)

## Testimonials

**Visual**
All icons are taken from [flaticon.com](https://www.flaticon.com/), so many kudos and thanks to [the authors](/icons/testimonials.md)