soerenuhrbach / vscode-deepl

DeepL for Visual Studio Code
MIT License
35 stars 7 forks source link

Add vscode setting for translation language #9

Closed ietz closed 10 months ago

ietz commented 2 years ago

I mostly use one target language, which I currently have to select again every time I restart VSCode. Would it be possible to add this as a setting variable, similar to deepl.formality? This way, one could specify a default translation language per user and workspace or leave the variable blank to retain the current behavior.

And thank you very much for publishing this extension! I love how I can select a section of text to translate directly in the document.

soerenuhrbach commented 2 years ago

Hi Tim,

thanks a lot for your feedback!

I will try to improve the behavior asap!

grandeljay commented 1 year ago

Came here for this. It would be great to be able to set a default source/target language for a workspace!

soerenuhrbach commented 1 year ago

Well the thing is - it will be saved for the current workspace. If you open another workspace, then you have to set the target and source languages again.

Need some more time to think about the configuration hierarchy handling

grandeljay commented 1 year ago

Well the thing is - it will be saved for the current workspace. If you open another workspace, then you have to set the target and source languages again.

That sounds great to me!

Need some more time to think about the configuration hierarchy handling

In VS Code settings can be set per User and/or Workspace. So If you add an option for the default language, the user can always use their "global" default settings for languages. Unless they specify something else in their workspace settings.

soerenuhrbach commented 10 months ago

That sounds good to me. I will add two more settings for "defaultTargetLanguage" and "defaultSourceLanguage" to define global defaults.

soerenuhrbach commented 10 months ago

The new config options were released with version 1.0.7.