HHG for TranslatePress extends TranslatePress with best-in-class AI translation engines. Pick from four engine families instead of a single provider.
Supported Translation Engines:
Google Gemini AI
Powered by Google’s latest Gemini models. Choose from Flash-Lite (fastest & cheapest), Flash (balanced), Pro (highest quality), or 3 Flash Preview (cutting edge). API key from Google AI Studio.
OpenAI Compatible Platform
A universal engine supporting seven OpenAI-compatible API providers through a single, unified interface:
- OpenAI — GPT-4o Mini, GPT-4o, GPT-4.1, o4-mini, GPT-4 Turbo
- Azure OpenAI — Bring your own deployment endpoint
- Groq — Ultra-fast inference with generous free tier (Llama 4, Mixtral, Gemma)
- Together AI — Open-source model hosting (Llama 4, DeepSeek V3, Qwen3)
- OpenRouter — Multi-provider routing (access OpenAI, Anthropic, Google models)
- Ollama — Run locally, zero API cost (Llama 3.2, Qwen3, Mistral, Gemma 3)
- Custom — Any OpenAI-compatible endpoint you provide
Each platform preset includes curated model suggestions, platform-specific descriptions, and automatic API configuration. The model input supports both free-form text entry and one-click suggestion chips — type any model name or click to select.
DeepSeek AI
DeepSeek V4 Flash for fast, affordable translations and V4 Pro for professional-grade quality. Optimized with thinking disabled for faster throughput and lower cost.
ZhiPu AI GLM
Six translation strategies: General, Paraphrase, Two Step, Three Step, Reflection, and Chain of Thought. Choose speed or depth depending on your content.
Key Features:
- Industry / Domain Description — Describe your site’s context once (industry, tone, terminology rules) and it’s injected into every translation request for consistent, accurate output across all engines
- Three-layer context system — Sliding-window surrounding strings, page-level key term extraction, and industry prompt for terminology consistency
- Parallel async translation — All chunks dispatched simultaneously via cURL multi-handle for maximum speed
- Two-round retry logic — Failed strings automatically retried in a second pass with lower temperature for maximum completeness
- Intelligent caching — 30-minute transient cache per chunk for instant repeat translations
- Adaptive chunk sizing — Chunk size auto-adjusted based on average string length per page
- Platform-aware configuration — Timeout, temperature, and chunk size tuned per model family via heuristic detection
- Native TranslatePress integration — Settings panel styled to blend seamlessly with TranslatePress’s own UI, with smooth CSS transitions
- Code security — All inputs sanitized, outputs escaped, nonces verified, SSL enforced, following WordPress best practices
External Services
This plugin connects to external AI translation services to provide automatic translation functionality. The following third-party services are used:
Google Gemini AI – Service: Google AI Studio API (https://aistudio.google.com/) – Purpose: AI-powered text translation using Google Gemini models – Data sent: Text content to be translated, source and target language codes – When: Only when Gemini is selected as the translation engine and translation is requested – Privacy Policy: https://policies.google.com/privacy – Terms of Service: https://policies.google.com/terms
OpenAI Compatible Platform – Services: OpenAI (https://api.openai.com/), Azure OpenAI, Groq (https://api.groq.com/), Together AI (https://api.together.xyz/), OpenRouter (https://openrouter.ai/), Ollama (local) – Purpose: AI-powered text translation using various OpenAI-compatible models – Data sent: Text content to be translated, source and target language codes – When: Only when OpenAI Compatible is selected as the translation engine and translation is requested – OpenAI Privacy Policy: https://openai.com/privacy/ – OpenAI Terms of Service: https://openai.com/terms/ – Groq Privacy Policy: https://groq.com/privacy/ – Together AI Privacy Policy: https://www.together.ai/privacy – OpenRouter Privacy Policy: https://openrouter.ai/privacy
DeepSeek AI – Service: DeepSeek API (https://api.deepseek.com/) – Purpose: AI-powered text translation using DeepSeek models – Data sent: Text content to be translated, source and target language codes – When: Only when DeepSeek is selected as the translation engine and translation is requested – Privacy Policy: https://platform.deepseek.com/privacy – Terms of Service: https://platform.deepseek.com/terms
ZhiPu AI GLM – Service: ZhiPu AI API (https://bigmodel.cn/) – Purpose: AI-powered text translation using ZhiPu GLM models – Data sent: Text content to be translated, source and target language codes – When: Only when ZhiPu is selected as the translation engine and translation is requested – Privacy Policy: https://www.zhipuai.cn/privacy – Terms of Service: https://www.zhipuai.cn/terms
Important Notes: – No data is sent to external services unless you explicitly configure and use one of these translation engines – All API communications are made over secure HTTPS connections – No personal user data is collected or transmitted — only the text content you choose to translate – You are responsible for complying with the terms of service and privacy policies of the services you choose to use
License
This plugin is licensed under the GPLv2 or later. You are free to use, modify, and redistribute it under the terms of the GNU General Public License.
