PHPackages                             palpalych/aitranslator-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. palpalych/aitranslator-plugin

ActiveOctober-plugin

palpalych/aitranslator-plugin
=============================

No description provided yet...

v1.0.2(3mo ago)09PHP

Since Jan 25Pushed 3mo agoCompare

[ Source](https://github.com/Pasha234/oc-aitranslator-plugin)[ Packagist](https://packagist.org/packages/palpalych/aitranslator-plugin)[ RSS](/packages/palpalych-aitranslator-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

AI Translator Plugin for October CMS
====================================

[](#ai-translator-plugin-for-october-cms)

This plugin provides an automated translation workflow for October CMS models using AI (LLMs like Anthropic Claude). It is designed to work seamlessly with the **Multisite** feature, allowing you to translate content from one site locale to another with a human-in-the-loop review process.

Features
--------

[](#features)

- **AI Integration:** Uses LLMs to translate content while preserving HTML structure.
- **Multisite Support:** Automatically detects available sites and propagates translations to the target site context.
- **Review Workflow:** Translations are not applied immediately. They generate a "Job" which allows an admin to review and edit the AI's output in a popup before applying.
- **Custom Prompts:** Configurable system instructions (prompts) to control tone, style, or specific translation rules.
- **Batch Processing:** Console command to translate records in bulk via cron/scheduler.

---

Configuration
-------------

[](#configuration)

### 1. Plugin Settings

[](#1-plugin-settings)

Go to **Settings &gt; Translations &gt; Translations** in the Backend.

- **Claude API Key:** Enter your Anthropic API Key.
- **Default Driver:** Choose the AI driver (e.g., `Claude` or `Dummy` for testing).
- **Default Prompt:** Select which system instruction to use by default for new jobs.

### 2. Config File

[](#2-config-file)

You can override defaults in `config/palpalych/aitranslator/config.php`:

- `drivers`: List of registered AI drivers.

---

Integration
-----------

[](#integration)

To enable AI translation for a specific resource (e.g., a Blog Post or a Story), you need to modify the **Model** and the **Controller**.

### 1. Preparing the Model

[](#1-preparing-the-model)

Add the `AiTranslatableModel` behavior and define which fields should be sent to the AI.

```
