VsTranslator icon indicating copy to clipboard operation
VsTranslator copied to clipboard

Is it possible to add automatic translation

Open Mustafa-Agha opened this issue 1 year ago • 2 comments

When I click ctr+shitft+t (which is the shortcut keys I added for google translate option)

A pop-up window appear which I have to click it again so the transaltion occurs, This is annoying and keep disppearing for a while I have to translate it a couple of time in order to show the modal again, so I can click.

is it possible when I click the short-cut keys the translated text is updated automaticlly instead of clicking the modal.

There is an option called "Translate result settings" >> "Show Type" (modal/output)

I thought if choosing output it will change right away, but nothing happens, I have to select modal so I can click it, so the text can change.

Mustafa-Agha avatar Aug 14 '23 15:08 Mustafa-Agha

I think you want to translate the text, to replace it, not to read it. It can be considered.

BTW,There is indeed no problem with the current mode, but when I first designed it, I wanted to translate and display multiple results from multiple platforms at once, like this. So in such cases, the replacement will not know which one to replace.

image

Kerwin1202 avatar Aug 16 '23 14:08 Kerwin1202

@Kerwin1202 You added an option for a shortcut. For example, if I want to translate using Google Translate

I chose alt+shift+t

In this case, you can replace the text automatically, instead of showing a pop-up confirming the text to be changed through clicking the pop-up.

This will be a good approach I think, because now I can select all similar sentenses or multipler different sentenses and just click the shortcut I added alt+shift+t then all of these will be changed automaticlly instead of changing them one by one.

It can be usefull like this extension for vscode https://marketplace.visualstudio.com/items?itemName=funkyremi.vscode-google-translate

Mustafa-Agha avatar Aug 16 '23 15:08 Mustafa-Agha