Giter Club home page Giter Club logo

deepl-alfred-workflow2's Introduction

Alfred DeepL Translation Workflow

Codacy Badge download

DeepL.com is a great, new translation service. It provides better translations compared to other popular translation engines.

Usage

To activate this workflow use the default keyword dl, enter the passage you wanna get translated and end the input with .. The source language will be inferred automatically and the target language can be configured.

Search

After 1-2 seconds you get the translation. This is just an example.

Result

Press to copy the result or ⌘ + ↩ to show result as big screen overlay. You can also translate any selected text within macOS by pressing ⌃ + ⌥ + ⌘ + d.

Caveats

Please note that the DeepL API is designed to translate up to 600 characters per minute and per customer only. Consider to get a pro account. Further, some longer sentences result in the message Error: Too many requests..

Installing the Workflow

Simply download the DeepL Workflow and install it by double-clicking the workflow file and clicking on "Import". You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.

Once imported, you may want to take a quick look at the workflow settings and setup what keyword you want to use. Further, you can change the target language in the settings as shown in this screenshot:

Config

Command Line

$ # DEEPL_TARGET="FR"
$ ./deepl.sh -l DE "This is just an example."
{
  "items": [
    {
      "uid": null,
      "arg": "Dies ist nur ein Beispiel.",
      "valid": "yes",
      "autocomplete": "autocomplete",
      "title": "Dies ist nur ein Beispiel."
    },
    {
      "uid": null,
      "arg": "Das ist nur ein Beispiel.",
      "valid": "yes",
      "autocomplete": "autocomplete",
      "title": "Das ist nur ein Beispiel."
    },
    {
      "uid": null,
      "arg": "Dies ist nur ein Beispiel dafür.",
      "valid": "yes",
      "autocomplete": "autocomplete",
      "title": "Dies ist nur ein Beispiel dafür."
    },
    {
      "uid": null,
      "arg": "Dies ist nur ein exemplarisches Beispiel.",
      "valid": "yes",
      "autocomplete": "autocomplete",
      "title": "Dies ist nur ein exemplarisches Beispiel."
    }
  ]
}

Details

To create a modified version of the workflow, edit the files and run make workflow to create an updated workflow.

Disclaimer

DeepL is a product from DeepL GmbH. More info: deepl.com/publisher.html

This package has been heavily inspired by m9dfukc's DeepL Alfred Workflow.

deepl-alfred-workflow2's People

Contributors

alexanderwillner avatar codacy-badger avatar

Watchers

 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.