Comments (9)
Good idea. Will provide this option as well.
from deepl-alfred-workflow2.
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.
Two options that could be implemented:
-
setting the preferred destination language in the workflow.
-
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.
It would be useful to be able to change languages using variables, and it's pretty simple to implement
from deepl-alfred-workflow2.
@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.
Implemented it via environment variable. Please test.
from deepl-alfred-workflow2.
from deepl-alfred-workflow2.
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?
from deepl-alfred-workflow2.
However, I solved it now like this:
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)
- Request support for Chinese language option HOT 4
- Doesn't work HOT 1
- No result HOT 12
- Does not translate, only removes whitespaces: "dl This is a test." becomes "Thisisatest"
- Don't like the auto-update feature. Please just notify me if I need an update. HOT 1
- „jq-dist“ OSX permisison error HOT 7
- Not installable on Monterey w. M1 Max HOT 1
- Issue: Invalid request for Chinese letters HOT 2
- With a pro account, where do I configure the API key? HOT 2
- 【feature request】Period/Dot as variable HOT 4
- [Alfred Gallery] User Configuration instead of Workflow Environment Variables
- Last character is removed in the translation HOT 1
- The original icon is not well recognized on dark skin, I replaced a new icon so that the user experience is better HOT 1
- Configurable target language
- It does nothing HOT 3
- Script with argv '(null)' finished HOT 21
- Workflow doesn't seem to work. HOT 3
- Spanish HOT 5
- Issue with macOS Catalina? HOT 10
- Specify source and target language HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepl-alfred-workflow2.