gitmyhub

TranslationPlugin

Kotlin ★ 12k updated 1d ago

Translation plugin for IntelliJ-based IDEs/Android Studio.

TranslationPlugin adds instant translation to JetBrains IDEs like IntelliJ IDEA and Android Studio, letting developers translate code comments, documentation, and variable names without leaving the editor.

KotlinJetBrains SDKsetup: easycomplexity 1/5

TranslationPlugin is a translation plugin for JetBrains IDEs, including IntelliJ IDEA, Android Studio, PyCharm, WebStorm, GoLand, CLion, Rider, and about a dozen others. It lets developers translate text without leaving the editor, using keyboard shortcuts or the right-click context menu.

The plugin connects to multiple translation services: Microsoft Translator, Google Translate, DeepL, OpenAI, Youdao, Baidu, and Alibaba Translate. Most of these require an API key that the user obtains by registering with the respective service and then entering in the plugin settings. Microsoft Translator and Google Translate can be used without configuration for basic use. Text-to-speech is also available through Microsoft Edge TTS, Google TTS, and OpenAI TTS, so words and phrases can be read aloud.

The most common use cases are: selecting a word or phrase in the editor and translating it in a popup, translating API documentation that appears in Quick Documentation panels, and replacing a selected piece of text with its translation. The replace feature is particularly useful when renaming variables or identifiers, since it can output the translation in camel case or with a configurable word separator to match code naming conventions. Documentation can also be set to translate automatically whenever it is opened.

The plugin is written in Kotlin and can be installed from within any supported IDE by searching for Translation in the JetBrains Marketplace. Manual installation from a downloaded file is also possible. The active translation engine can be switched quickly from the status bar at the bottom of the IDE window.

A Word Book feature lets users save translations for later review.

Where it fits