Strapi LLM Translator
AI-powered translations for Strapi – one-click localization with any LLM!
Strapi LLM Translator
AI-Powered Content Translation for Strapi
The Strapi LLM Translator plugin enhances your localization workflow by utilising LLMs to translate your content fields with a single click. Compatible with any OpenAI-compatible LLM, it preserves your original formatting while delivering fast, accurate results in seconds.
🚀 Key Features
- 🌍 Multi-field Support - Translates all text-based fields (string, text, richtext) and JSON/Blocks content, including Strapi 5 structured rich text
- 🔌 LLM Agnostic - Works with any OpenAI-compatible API (your choice of provider or local)
- 📝 Format Preservation - Maintains markdown formatting during translation
- 🔗 Smart UUID Handling - Auto-translates slugs when i18n is enabled with relative fields
- ⚡ Auto-fill - Instantly populates generated translations
- 🎛️ Customizable - Adjust system prompts and temperature for optimal results
✅ Tested With
- Strapi: v5.12.x, v5.15.x
- LLM Providers:
- OpenAI:
gpt-4o
- Groq:
meta-llama/llama-4-scout-17b-16e-instruct
- Local:
Ollama
, e.g.phi4-mini
- OpenAI:
🛠️ Installation & Setup
Prerequisites
- Strapi project (v5+)
- API key for your preferred LLM provider, Base Url + Model Name
- Configured internationalization with at least two languages in your Strapi application
Installation
- Install the plugin in your Strapi project:
npm install strapi-llm-translator
- Configure environment variables:
1# Optional - Your LLM provider API key (Can be left empty if there is no API Key needed)
2LLM_TRANSLATOR_LLM_API_KEY=
3
4# Optional - Defaults to OpenAI's endpoint
5STRAPI_ADMIN_LLM_TRANSLATOR_LLM_BASE_URL=
6
7# Optional - Defaults to gpt-4o
8STRAPI_ADMIN_LLM_TRANSLATOR_LLM_MODEL=
- Rebuild your admin panel:
1npm run build
After installation, customize the translation behavior through the LLM Translator configuration page:
💻 Plugin Development
To contribute to the plugin development:
- Navigate to your Strapi project
- Add and link the plugin:
npx yalc add strapi-llm-translator && npx yalc link strapi-llm-translator && npm install
- Start your Strapi project
- In a separate terminal, watch the plugin for changes:
npm run watch:link
About
Franziska Fieke (grenzbotin) – vulpis.dev
Distributed under the MIT license.
See LICENSE
for more information.
Install now
npm install strapi-llm-translator
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.