Giter Club home page Giter Club logo

Comments (9)

AlexanderWillner avatar AlexanderWillner commented on September 12, 2024 1

Good idea. Will provide this option as well.

from deepl-alfred-workflow2.

RyuX51 avatar RyuX51 commented on September 12, 2024

It does only translates into German for me, too. The Readme says:

To activate this workflow use the default keyword dl, enter the passage you wanna get translated and end the input with .. Source and destination language will be inferred automatically.

I'm trying to figure out if there's a way to pass a parameter to the workflow to get translations into other languages, too?

from deepl-alfred-workflow2.

AlexanderWillner avatar AlexanderWillner commented on September 12, 2024

Two options that could be implemented:

  1. setting the preferred destination language in the workflow.

  2. passing the target language, for example "dl today will be nice weather > fr" or for more than one target language "dl will it rain today? > fr de".

What do you think?

from deepl-alfred-workflow2.

dotiful avatar dotiful commented on September 12, 2024

It would be useful to be able to change languages using variables, and it's pretty simple to implement

from deepl-alfred-workflow2.

RyuX51 avatar RyuX51 commented on September 12, 2024

@AlexanderWillner I like both ideas, this would also be consistent with m9dfukc's workflow. Personally I prefer to set the preferred destination language in the workflow. This allows me to create the workflows dlde, defr for my most commons translations. Passing the target language is also great though since it doesn't require to copy and modify the workflow for fast translations.

from deepl-alfred-workflow2.

AlexanderWillner avatar AlexanderWillner commented on September 12, 2024

Implemented it via environment variable. Please test.

from deepl-alfred-workflow2.

AlexanderWillner avatar AlexanderWillner commented on September 12, 2024

deepl-setup2

from deepl-alfred-workflow2.

RyuX51 avatar RyuX51 commented on September 12, 2024

I'm not so sure about the advantage of using the environment variable. In m9dfukc's workflow I could just copy the Script Filter, set the keyword to dlfr and modify the script to use $default_language = 'FR';. With the environment variable, I set the language for the whole workflow again, so I don't see the advantage here? I always have to open the workflow and change the variable there if I want to get translations for another language? Or do I miss something obvious?

Screenshot 2019-05-14 at 11 43 44

from deepl-alfred-workflow2.

RyuX51 avatar RyuX51 commented on September 12, 2024

However, I solved it now like this:

Screenshot 2019-05-14 at 11 52 09

I'm sure the environment variable will be of some use since user @dotiful requested it that way. Thank you for taking the time.

from deepl-alfred-workflow2.

Related Issues (20)

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.