AI Localization
TeqCMS supports automatic HTML page translation using language models (LLMs) compatible with OpenAI API. This allows creating and maintaining multilingual websites without manual content synchronization.
- 🧠 Translation is performed via the
npm run translate
command - 🔌 Supports OpenAI, DeepSeek and other compatible APIs
- 📄 Each page can have local instructions in
*.prompt.md
files - 🗂 Translation state is stored in
var/teq-cms/db_translate.json
- ⚙️ Behavior can be configured through environment variables:
TEQ_CMS_LOCALE_ALLOWED=... TEQ_CMS_LOCALE_BASE_TRANSLATE=...
The default system prompt is embedded in Defaults.js
, but can be overridden via the var/teq-cms/system.prompt.md
file.
TeqCMS tracks the modification time of the original page and the last translation time. This allows automatic detection of outdated translations and updates them only when necessary.