This extension provides translation support for Visual Studio Code.
Get from Marketplace or OpenVSX
- Multiple languages translation support
- Google and Microsoft translation API support
- Definitions and examples support (depend on translation API)
- Pronunciation support
- Bookmark support
- User data synchronization support
- User data export support
- Settings
- Hovering Translation
- Simple Translation
- Complete Translation
{
// Enable/Disable translating the selected text when mouse hovering automatically.
"translation.auto-translate-hovering": true,
// Default source language for translation.
"translation.source-language": "auto",
// Default target language for translation.
"translation.target-language": "zh-CN",
// Specifies how to display the result of simple translation.
"translation.simple-display-mode": "notification",
// Max size of history.
"translation.max-history": 20,
// Specifies the translation api provider. (Google or Microsoft)
"translation.translation-api-provider": "Google",
// Specifies the voice api provider. (Google or Microsoft)
"translation.voice-api-provider": "Google"
}
Value of source language and target language
Language | Value |
---|---|
Auto | auto (source language only) |
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Armenian | hy |
Azerbaijani | az |
Basque | eu |
Belarusian | be |
Bengali | bn |
Bosnian | bs |
Bulgarian | bg |
Catalan | ca |
Cebuano | ceb |
Chichewa | ny |
Chinese (Simple) | zh-CN |
Chinese (Traditional) | zh-TW |
Corsican | co |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch | nl |
English | en |
Esperanto | eo |
Estonian | et |
Filipino | tl |
Finnish | fi |
French | fr |
Frisian | fy |
Galician | gl |
Georgian | ka |
German | de |
Greek | el |
Gujarati | gu |
Haitian Creole | ht |
Hausa | ha |
Hawaiian | haw |
Hebrew | iw |
Hindi | hi |
Hmong | hmn |
Hungarian | hu |
Icelandic | is |
Igbo | ig |
Indonesian | id |
Irish | ga |
Italian | it |
Japanese | ja |
Javanese | jw |
Kannada | kn |
Kazakh | kk |
Khmer | km |
Kinyarwanda | rw |
Korean | ko |
Kurdish | ku |
Kyrgyz | ky |
Lao | lo |
Latin | la |
Latvian | lv |
Lithuanian | lt |
Luxembourgish | lb |
Macedonian | mk |
Malagasy | mg |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Maori | mi |
Marathi | mr |
Mongolian | mn |
Myanmar | my |
Nepali | ne |
Norwegian | no |
Pashto | ps |
Persian | fa |
Polish | pl |
Portuguese | pt |
Punjabi | pa |
Romanian | ro |
Russian | ru |
Samoan | sm |
Scots Gaelic | gd |
Serbian | sr |
Sesotho | st |
Shona | sn |
Sindhi | sd |
Sinhala | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Sundanese | su |
Swahili | sw |
Swedish | sv |
Tajik | tg |
Tamil | ta |
Telugu | te |
Thai | th |
Turkish | tr |
Turkmen | tk |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Vietnamese | vi |
Welsh | cy |
Xhosa | xh |
Yiddish | yi |
Yoruba | yo |
Zulu | zu |
- Select text in editor and hover on it, and the translation will shown in popup.
-
Select text in editor and right click, choose
Simple Translate
(or use shortcutShift+Alt+T
),
and the translation for selected text will be shown in notification. -
It is possiable to display the translation result in different ways (notification or statusBar) by
translation.simple-display-mode
.
- Select text in editor and right click, choose
Complete Translate
, and the translation for selected text will be shown in Translation panel.
- The Translation panel also can be opened by command
Translation
.
Support me by AFDIAN: https://afdian.com/a/caiqichang