Skip to content

pniemczyk/translate_api_alfred_workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate API Alfred workflow

If you need to quickly translate text this workflow may be useful.

You need to create a Google Translate API access token to be able to use this workflow check instructions

Check it out this is a small presentation

Preview

Download workflow

Requirements

  • ruby (checked on version 3.0.2)
  • Alfred with Powerpack
  • Google Translation API key

Setup

Global variables

  • GT_API_KEY={your_google_translate_key}
  • TARGETS={languages}
  • SUBTITLE_ENABLED={when_contain_value_is_true}

Example

GT_API_KEY='122'
TARGETS='pl,en,ru'
SUBTITLE_ENABLED=yes

Subtitle will be disabled when SUBTITLE_ENABLED key or value is missing.

GT_API_KEY='122'
TARGETS='en'
SUBTITLE_ENABLED=

Side notes

The code is written in ruby. Feel free to change the code!

About

Alfred workflow for Translations via Google Translate API

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages