Socket
Socket
Sign inDemoInstall

alfred-yandex-translate

Package Overview
Dependencies
198
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    alfred-yandex-translate

Yandex Translate workflow for Alfred


Version published
Maintainers
1
Created

Changelog

Source

v1.1.0

Add support for translation with Dictionary API. Now it first looks for translations in Dictionary API and fallbacks to Translation API. This allows to see all possible translations, not the only one.

Breaking change

Now you need to use YANDEX_TRNSL_API_KEY variable for your Yandex Translate API key instead of YANDEX_API_KEY. In addition you need to setup Yandex Dictionary API key as described in Install instructions.

Readme

Source

alfred-yandex-translate

Yandex Translate workflow for Alfred (powered by Alfy).

Install

$ npm install -g alfred-yandex-translate

In addition you need to set your Yandex Translate API key and Yandex Dictionary API key in the workflow environment variables.

To setup both keys do the following:

  • Generate new Yandex Translate API key here or use existing one from My Keys page.
  • Generate new Yandex Dictionary API key here or use existing one from My Keys page.
  • Open Alfred preferences.
  • Click on the Workflows tab.
  • Select the Yandex Translate workflow.
  • Open the environment variables panel.
  • Paste your Yandex Translate API key in the YANDEX_TRNSL_API_KEY variable.
  • Paste your Yandex Dictionary API key in the YANDEX_DICT_API_KEY variable.

Usage

There are two commands available:

  • ytc - configures translation direction. Shows all available options to select from. Default is en-ru.
  • yt - translates input query using current translation direction. Outputs translation. Use Enter to copy the translation in the clipboard. Use ⌘ Cmd + Enter to enlarge the translation text.

You can also setup shortcuts for often used translators. To do this, open the workflow editor and do the following:

  • Copy yt script filter.
  • Paste it and connect with the Copy to Clipboard and Large Type the same way as original yt script filter.
  • Open edit dialog for new script filter.
  • In the Script field add translation direction you wish to use to the end of the command. For example, ./node_modules/.bin/run-node scripts/translate.js "$1" it-ru.
  • Change Keyword and Placeholder Title to something more meaningful for you.

License

MIT © Michael Kalygin

Keywords

FAQs

Last updated on 09 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc