Skip to content

caiqichang/vsc-translation

Repository files navigation

logo vsc-translation

This extension provides translation support for Visual Studio Code.

Get from Marketplace or OpenVSX

Features

Usage

Settings

{
  // 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
LanguageValue
Autoauto (source language only)
Afrikaansaf
Albaniansq
Amharicam
Arabicar
Armenianhy
Azerbaijaniaz
Basqueeu
Belarusianbe
Bengalibn
Bosnianbs
Bulgarianbg
Catalanca
Cebuanoceb
Chichewany
Chinese (Simple)zh-CN
Chinese (Traditional)zh-TW
Corsicanco
Croatianhr
Czechcs
Danishda
Dutchnl
Englishen
Esperantoeo
Estonianet
Filipinotl
Finnishfi
Frenchfr
Frisianfy
Galiciangl
Georgianka
Germande
Greekel
Gujaratigu
Haitian Creoleht
Hausaha
Hawaiianhaw
Hebrewiw
Hindihi
Hmonghmn
Hungarianhu
Icelandicis
Igboig
Indonesianid
Irishga
Italianit
Japaneseja
Javanesejw
Kannadakn
Kazakhkk
Khmerkm
Kinyarwandarw
Koreanko
Kurdishku
Kyrgyzky
Laolo
Latinla
Latvianlv
Lithuanianlt
Luxembourgishlb
Macedonianmk
Malagasymg
Malayms
Malayalamml
Maltesemt
Maorimi
Marathimr
Mongolianmn
Myanmarmy
Nepaline
Norwegianno
Pashtops
Persianfa
Polishpl
Portuguesept
Punjabipa
Romanianro
Russianru
Samoansm
Scots Gaelicgd
Serbiansr
Sesothost
Shonasn
Sindhisd
Sinhalasi
Slovaksk
Sloveniansl
Somaliso
Spanishes
Sundanesesu
Swahilisw
Swedishsv
Tajiktg
Tamilta
Telugute
Thaith
Turkishtr
Turkmentk
Ukrainianuk
Urduur
Uzbekuz
Vietnamesevi
Welshcy
Xhosaxh
Yiddishyi
Yorubayo
Zuluzu

Back to top

Hovering Translation

  • Select text in editor and hover on it, and the translation will shown in popup.

hovering-translation-screenshot

Back to top

Simple Translation

  • Select text in editor and right click, choose Simple Translate (or use shortcut Shift+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.

simple-translation-screenshot

Back to top

Complete Translation

  • Select text in editor and right click, choose Complete Translate, and the translation for selected text will be shown in Translation panel.

complete-translation-screenshot

  • The Translation panel also can be opened by command Translation.

translation_command-screenshot

Back to top

Donation

Support me by AFDIAN: https://afdian.com/a/caiqichang

Back to top