Hover translate is a vs code extension to translate text on hover. Currently, this plugin uses Yandex translate and requires a yandex api key which you can obtain for free (https://tech.yandex.com/translate/). Support for google translate api may be added in the future.
- A yandex api key is required to use this plugin.
- create a key https://tech.yandex.com/translate/
- add key to hover translate settings (Yandex Api Key)
This extension contributes the following settings:
hovertranslate.enableExtension
: enable/disable this extensionhovertranslate.yandexApiKey
: Yandex translate api keyhovertranslate.hideSameLangHover
: Do not show tooltip if the detected language of a word is the same as your translate tohovertranslate.translateFrom
: Language to translate text from- Options
- Auto Detect Language
- Arabic
- German
- English
- Spanish
- French
- Italian
- Japanese
- Korean
- Russian
- Chinese
- Options
hovertranslate.translateTo
: Language to translate text to- Options
- Arabic
- German
- English
- Spanish
- French
- Italian
- Japanese
- Korean
- Russian
- Chinese
- Options
Note: This extension can support all language Yandex translate supports. This set was chosen for now. Submit a pr or open an issue if you want another one. (https://github.com/marclanepitt/hovertranslate)
- Translating entire sentences can be difficult because the extension uses spaces a delimiter. One hack to translate an entire sentence is to highlight it and then hover over the space to the right of it
Initial release
- basic translate on text hover