๐ ไธญๆๆๆกฃ | English Documentation
๐ A clean, reliable, and efficient Discord translation plugin with multi-API management
A BetterDiscord translation plugin built with "good taste" principles. Double-click any message to translate it instantly. Supports multiple API configurations for seamless switching between different translation services.
- ๐ฑ๏ธ Double-click Translation - Double-click any message to translate instantly
- ๐ฏ Smart Caching - Automatically cache translation results
- ๐ Multi-language Support - Support for Chinese, English, Japanese, Korean, and other major languages
- ๐ค Multi-model Support - Compatible with OpenAI, DeepSeek, and all OpenAI-format APIs
- ๐ก Smart Quote Handling - Automatically identify and separately translate quoted content
- ๐จ Perfect Integration - Translation styles perfectly integrate with Discord interface
- โก Minimalist Design - Following "good taste" principles with clean and efficient code
- ๐ Multilingual Interface - Plugin interface supports English/Chinese switching
- ๐ Multi-API Management - Save and switch between multiple API configurations
- ๐จ Enhanced Error Handling - Detailed error messages with troubleshooting suggestions
- Ensure BetterDiscord is installed
- Download the
AbruptTranslation.plugin.jsfile - Place the file in your BetterDiscord plugins directory:
- Windows:
%AppData%/BetterDiscord/plugins/ - macOS:
~/Library/Application Support/BetterDiscord/plugins/ - Linux:
~/.config/BetterDiscord/plugins/
- Windows:
- Restart Discord and enable the plugin in settings
- Find "AbruptTranslation" in BetterDiscord plugin settings
- Click the settings button to configure:
- Plugin Language: Choose English or Chinese interface
- Target Language: Translation target language (default: Chinese)
- Translation Prompt: Customize the translation prompt template
- Add New API: Click to add a new API configuration
- API List: View and manage all saved API configurations
- Current API: Select which API configuration to use
- Configuration Name: Custom name for this API configuration
- API Key: Your API key for this service
- Base URL: Complete API endpoint URL (see examples below)
- Model: AI model name to use
- Click "Test API" to verify configuration
- Settings are saved automatically
Basic Usage:
- Translate Message - Double-click any Discord message
- Hide Translation - Double-click the same message again
- Show Again - Double-click the message a third time
Smart Features:
- ๐ Smart Caching - Same content won't be translated repeatedly
- ๐ Quote Messages - Automatically separate translation of quoted content
- ๐ค Skip Self - Automatically skip your own messages
- โก Instant Response - Translation results appear instantly
Multi-API Management:
- Add API - Click "ๆทปๅ ๆฐAPI้ ็ฝฎ" in settings
- Switch API - Use dropdown to select different configurations
- Edit/Delete - Manage existing API configurations
- Test API - Verify current configuration works
Original: Hello, how are you?
โโโโโโโโโโโโโโโโโโโโโโโโ
๐ฌ Translation: ไฝ ๅฅฝ๏ผไฝ ๆไนๆ ท๏ผ
Quote Message Example:
๐ Quote Translation: This is the quoted content translation
๐ฌ Reply Translation: This is the reply content translation
๐ก Supports all OpenAI-compatible API services - Just configure the corresponding Base URL and model name
API Key: sk-xxxxxxxxxxxxxxxx
Base URL: https://api.openai.com/v1
Model: gpt-3.5-turbo / gpt-4 / gpt-4-turbo
API Key: AIxxxxxxxxxxxxxxxx
Base URL: https://generativelanguage.googleapis.com/v1beta
Model: gemini-pro / gemini-1.5-flash / gemini-1.5-pro
API Key: sk-xxxxxxxxxxxxxxxx
Base URL: https://api.deepseek.com/chat/completions
Model: deepseek-v4-flash / deepseek-v4-pro
You can also select DeepSeek from the plugin settings. Its Base URL will be filled automatically.
API Key: xxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx
Base URL: https://open.bigmodel.cn/api/paas/v4
Model: glm-4 / glm-4-flash / glm-3-turbo
API Key: sk-xxxxxxxxxxxxxxxx
Base URL: https://api.openai.com/v1
Model: moonshot-v1-8k / moonshot-v1-32k / moonshot-v1-128k
API Key: sk-xxxxxxxxxxxxxxxx
Base URL: https://dashscope.aliyuncs.com/compatible-mode/v1
Model: qwen-turbo / qwen-plus / qwen-max
API Key: xxxxxxxxxxxxxxxx
Base URL: https://qianfan.baidubce.com/v2
Model: ernie-3.5-8k / ernie-4.0-8k / ernie-speed
API Key: sk-ant-xxxxxxxxxxxxxxxx
Base URL: https://api.anthropic.com/v1 # Requires proxy service
Model: claude-3-haiku / claude-3-sonnet / claude-3-opus
# Generally compatible with OpenAI format, provide complete endpoint URL
API Key: Key provided by proxy service
Base URL: Complete proxy service endpoint URL (including /chat/completions)
Model: Supported model name
Default prompt:
Translate the following text to {targetLang}, return only the translation:
{text}
Can be customized as needed, supports variables:
{targetLang}- Target language{text}- Original text content
Following "good taste" principles:
- Eliminate Special Cases - Make toggling display the normal flow
- Simplicity Obsession - Functions are short and focused, doing one thing well
- Pragmatism - Solve real problems, reject over-engineering
- DOM Event Listening - Global double-click event capture
- Smart Element Finding - Precisely locate Discord message containers
- Caching Mechanism - Map-based translation result caching
- CSS Priority Handling - Use
!importantto ensure styles take effect - Async API Calls - Support concurrent translation requests
- Multilingual Interface - Dynamic language switching system
- Multi-API Management - Dynamic API configuration switching
- Enhanced Error Handling - Detailed error diagnosis and user feedback
A: Check if API configuration is correct and ensure API Key is valid
A: Plugin uses !important styles. If issues persist, try restarting Discord
A: Check network connection and API service response speed
A: Plugin automatically skips your own messages and messages too short (less than 2 characters)
A: Select "Plugin Language" in plugin settings
A: Click "ๆทปๅ ๆฐAPI้ ็ฝฎ" in settings, fill in the details
A: Yes, v3.0.0 provides specific troubleshooting suggestions based on error type
A: Yes, click the "็ผ่พ" button next to any API configuration
A: The plugin uses the selected API configuration in the dropdown menu
MIT License - Free to use, modify, and distribute
Welcome to submit Issues and Pull Requests!
Follow code philosophy:
- Code should have "good taste"
- Simplicity over complexity
- Practicality over perfection
Project Repository: GitHub - AbruptTranslation Author Twitter: @unflwMaige
Enjoy barrier-free Discord chatting experience! ๐