Skip to content

Darley-Wey/Commit-Translator

Repository files navigation

Commit Translator

Build Version Downloads

Commit Translator is an IntelliJ IDEA plugin that translates your commit messages to English using OpenAI-compatible APIs.

Features

  • One-Click Translation: Translate commit messages to English with a single click
  • OpenAI-Compatible: Works with OpenAI, Azure OpenAI, DeepSeek, and other compatible APIs
  • Secure Storage: API keys are stored securely using IDE's credential store
  • Customizable: Configure API endpoint, model, and other settings

Usage

  1. Open the Commit tool window
  2. Write your commit message in any language
  3. Click the "Translate to English" button in the commit message toolbar
  4. Your message will be translated to English automatically

Configuration

Go to Settings/Preferences > Tools > Commit Translator to configure:

  • API URL: Your OpenAI-compatible API endpoint
  • API Key: Your API key (stored securely)
  • Model: The model to use (e.g., gpt-4o-mini, gpt-4, deepseek-chat)

Supported APIs

This plugin works with any OpenAI-compatible chat completion API:

  • OpenAI: https://api.openai.com/v1/chat/completions
  • Azure OpenAI: https://{resource}.openai.azure.com/openai/deployments/{deployment}/chat/completions?api-version={version}
  • DeepSeek: https://api.deepseek.com/v1/chat/completions
  • Local LLMs: Any local server with OpenAI-compatible API (e.g., Ollama, LM Studio)

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Commit Translator" > Install

  • Using JetBrains Marketplace:

    Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > Gear Icon > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.

About

IntelliJ IDEA plugin that translates your commit messages to English

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages