How to Integrate Google Translate in VS Code to Translate Code in Different Languages
Jan 9, 2025
How to Integrate Google Translate in VS Code to Translate Code in Different Languages
View Video Transcript
0:00
uh Hello friends welcome to this video
0:02
so in this video I will show you a nice
0:04
little extension in vs code which does
0:07
the same job of Google translate you can
0:09
translate your words inside the code
0:13
with different languages you just need
0:15
to select the text that you want to
0:16
translate let me show you the demo right
0:19
here so this is the text that I want to
0:21
translate I will first of all select
0:23
this text and then I will
0:26
simply hit this shortcut key control
0:30
shift p to actually open
0:33
this and then I will simply use this
0:36
option
0:38
translate there is this extension so
0:42
first of all you will select this text
0:45
and then you will select the language so
0:47
all the languages are supported you will
0:49
see that the drop down will come you can
0:51
select your own native language that you
0:54
want to convert this text to so you can
0:58
just select any
1:01
language so let me select this language
1:05
so after that you will see that this
1:07
code will be
1:08
translated so if you open this HTML file
1:11
you will actually
1:15
see the text has been successfully
1:18
translated to this language that we
1:20
selected so in the similar
1:23
way you can simply select whichever text
1:27
that you want to translate and then type
1:29
control shift V and then select your
1:33
language Let Me select Spanish here so
1:37
you will
1:38
see now that English has been converted
1:41
to Spanish so you don't need any Google
1:44
translate API key there is no need of
1:47
API key at all this extension is totally
1:50
free so the name of the extension is go
1:54
to extensions Tab and then just type uh
1:57
Google Translate in the search
2:01
bar this is actually the second
2:05
extension just make sure that you
2:07
install the correct one this is actually
2:10
the extension which is funky Remy it's
2:12
developed by this person and let me
2:15
uninstall this first of all
2:18
and it has having
2:21
540,000 downloads at the time of
2:24
recording this video so this is actually
2:26
this extension that you want to install
2:28
it
2:30
so click on the install button and now
2:33
the extension is successfully installed
2:37
globally now you can open any
2:41
file this is not necessary for HTML
2:45
files you can have any JavaScript code
2:49
as well which contains some kind of text
2:51
we need to select that text so again if
2:54
I select this control shift p this is a
2:59
key keyboard shortcut and then you will
3:02
simply type
3:04
translate all these options will come
3:07
and uh translate selection and then the
3:10
set of languages will come here right
3:12
here you can select your language Let Me
3:15
select here Chinese language you will
3:17
see that the English language has been
3:19
converted to Chinese so now you can open
3:22
this file in the browser to see the
3:24
changes you will see changes have been
3:27
taken place so in this way in sec you
3:30
can convert your web pages from
3:32
different languages right in the vs code
3:35
extension don't need to use any Google
3:37
translate you can use this extension for
3:40
totally free while you're coding you can
3:44
shift between different
3:47
languages so it's a great plug-in great
3:54
extension you can see all the languages
3:57
are
3:58
supported so once you select the
4:00
language it will be now we successfully
4:03
be
4:11
translated so just select your language
4:15
from the drop down control shift p this
4:17
is a shortcut key and then translate
4:20
selection and then you can select the
4:25
language so all the languages are
4:27
supported
4:32
so this is actually the extension guys
4:34
thank you very much for watching this
4:36
video If you like this video then please
4:38
hit that like button subscribe the
4:40
channel and uh do check out my website
4:42
free media tools which contains free
4:46
tools regarding audio image and video
4:48
and I will be seeing you in the next
4:50
video
#Other
#Web Design & Development
