funkyremi / vscode-google-translate

Translate text right in your code
MIT License
133 stars 39 forks source link

[question] how to choose all values of a object like in readme? #93

Open radiorz opened 1 year ago

radiorz commented 1 year ago

image

alrferreira commented 1 year ago

I have the same issue. How to select and translate all sentences? Thanks.

radiorz commented 1 year ago

@alrferreira There is a way to do this: https://stackoverflow.com/questions/67890201/how-to-select-all-values-from-json-file-in-vs-code

but it is no very easy haha

rdsaunders commented 1 year ago

The following regex will select all values (?<=:\s")[^"]+ in VS Code, then use Select all occurrences, close the find dialog then use Shift+Alt+T to translate all the values.