Giter Club home page Giter Club logo

fal0258 / alfred-quick-translate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkmr-jp/alfred-quick-translate

0.0 0.0 0.0 7.37 MB

Translation Workflow for Alfred 4. You can quickly translate from the launcher. Google Translate and DeepL translation are supported. Multi-language translation supported. / Alfred4対応の翻訳ワークフローです。ランチャーからサクッと翻訳できます。Google翻訳とDeepL翻訳に対応。多言語翻訳対応。

Shell 99.09% Makefile 0.91%

alfred-quick-translate's Introduction

English | 日本語

Alfred Quick Translate

  • Translations for Alfred 5 Workflow. (*Powerpack is required.)
  • This workflow uses translate-shell.
  • Icon is iconfinder.
  • You can choose a translation engine.
    • Google(default), DeepL
    • If you use DeepL, you need to register with DeepL API to get the key.
  • You can now choose which language to translate into

Features

Translate and paste the text

Translate and search directly

Selecting and translating text

Automatic saving of translated logs (~/translate_log2.yml)

Since the log file is in Yaml, you can parse it with the yq command.

$ brew install python-yq
$ cat  ~/translate2_log.yml | yq .

Automatically saves to the clipboard as well.
The clipboard feature of Alfred is useful for searching the history.

No matter which features you use, the pre- and post-translation texts are stored in the log file, and it automatically saved the clipboard both.

Install

1: Install Alfred, buy Powerpack and activate it.

2: Installing various commands

brew install translate-shell jq coreutils curl

3: Download quick-translate.alfredworkflow from releases

4: Click on the downloaded quick-translate.alfredworkflow to open it and click on import to launch Alfred.

Language and translation engine settings

After installing the workflow, click on the icon in the upper right corner to open the configuration screen. This screen allows you to select a translation engine and language. See About the Workflow on the left for more configuration information.

When using DeepL

  1. Register with DeepL API to get the API key.
  2. Type deepl in the engine and Enter the API key in the deepl_api_key.

Hotkey settings.

From Workflows in Alfred's Preferences When you open Quick Translate, you can set a hotkey for each feature like this. Initially, Hotkey is blank, so you can assign a key of your choice and use it

Usage

When you want a quick translation

Launch the translation launcher with the key you assigned in the Hotkey settings. As you type in the text, it translates in real-time. You can press Enter to paste the translation into an editor.

When you want to translate and search on Google

Launch the translation launcher with the key you assigned in the Hotkey settings. After typing the text in the translation launcher, You can Google the translated text with cmd + Enter.

When you want to select and translate text

Select the text you want to translate and enter the key you assigned to Hotkey.

When in the browser, you can use Google Translate. But if you use Alfred Quick Transrate, when you want to read comments on the source code of not the native language, and useful when you want to translate chat messages and so on immediately.

alfred-quick-translate's People

Contributors

nkmr-jp avatar lirlia avatar fal0258 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.