@goenhance/strapi-plugins-translate

中文文档
1.1.17发布于 2026/06/05MITTypeScriptESM + CJS近 30 天下载 6900

AI-Powered Content Translation for Strapi with Batch Translation Support. Forked from strapi-llm-translator by grenzbotin.

原始使用文档
文档目录7 节
  1. 🚀 Key Features
  2. ✅ Tested With
  3. 🛠️ Installation & Setup
  4. Prerequisites
  5. Installation
  6. 💻 Plugin Development
  7. About

Strapi LLM Translator Icon 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

strapi-llm-translator

✅ 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

🛠️ 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

  1. Install the plugin in your Strapi project:
npm install strapi-llm-translator
  1. Configure environment variables:
# Optional - Your LLM provider API key (Can be left empty if there is no API Key needed)
LLM_TRANSLATOR_LLM_API_KEY=

# Optional - Defaults to OpenAI's endpoint
STRAPI_ADMIN_LLM_TRANSLATOR_LLM_BASE_URL=

# Optional - Defaults to gpt-4o
STRAPI_ADMIN_LLM_TRANSLATOR_LLM_MODEL=
  1. Rebuild your admin panel:
npm run build

After installation, customize the translation behavior through the LLM Translator configuration page:


Strapi LLM Translator Configuration screen

💻 Plugin Development

To contribute to the plugin development:

  1. Navigate to your Strapi project
  2. Add and link the plugin: npx yalc add strapi-llm-translator && npx yalc link strapi-llm-translator && npm install
  3. Start your Strapi project
  4. 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.

版本与发布记录

@goenhance/strapi-plugins-translate 共发布 28 个版本,首次发布于 2025/12/11;过去 12 个月发布了 28 个版本。

版本发布日期距今
1.1.17latest2026/06/055 个月前
1.1.162026/05/146 个月前
1.1.152026/05/146 个月前
1.1.142026/05/146 个月前
1.1.132026/05/146 个月前
1.1.122026/05/146 个月前

关于 @goenhance/strapi-plugins-translate 的常见问题

@goenhance/strapi-plugins-translate 是什么?

AI-Powered Content Translation for Strapi with Batch Translation Support. Forked from strapi-llm-translator by grenzbotin.

如何安装 @goenhance/strapi-plugins-translate?

在项目目录运行 npm install @goenhance/strapi-plugins-translate,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@strapi/sdk-plugin(^5.4.0)、@strapi/strapi(>=5.39.0)、react(^18.3.1)、react-dom(^18.3.1)、react-router-dom(^6.30.0)、styled-components(^6.1.17)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@goenhance/strapi-plugins-translate 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@goenhance/strapi-plugins-translate 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@goenhance/strapi-plugins-translate 可以商用吗?

@goenhance/strapi-plugins-translate 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@goenhance/strapi-plugins-translate 的下载量有多少?

根据 npm 官方下载统计,@goenhance/strapi-plugins-translate 在 2026/10/17 – 2026/11/15 这 30 天内被下载 6,900 次,日均约 230 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@goenhance/strapi-plugins-translate 还在维护吗?

最新版本 1.1.17 发布于 2026/06/05(5 个月前);至今共发布 28 个版本,其中过去 12 个月发布了 28 个;首次发布于 2025/12/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。