Download the PHP package orangecat/translate-ai without Composer
On this page you can find all versions of the php package orangecat/translate-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package translate-ai
Orangecat TranslateAi
Base module for AI-powered translations in Magento 2.
Overview
This module provides a generic, extensible framework for integrating AI translation services into Magento 2. It defines the interfaces and infrastructure needed to support multiple AI providers.
Architecture
Components
-
TranslatorInterface (
Api/TranslatorInterface.php)- Contract that all AI providers must implement
- Methods:
translate(),getCode(),getName(),isAvailable(),validateConfiguration()
-
TranslatorPool (
Model/TranslatorPool.php)- Manages all registered translation providers
- Provides access to active translator from configuration
- Returns list of available providers
-
TranslationException (
Exception/TranslationException.php)- Custom exception for translation errors
- Configuration
- System configuration to select active provider
- Located in: Stores > Configuration > Orangecat > AI Translation
Creating a Translation Provider
To add a new AI provider, create a separate module that:
-
Depends on this module in
module.xml: -
Implements TranslatorInterface:
- Registers in di.xml:
Usage
Configuration
Navigate to: Stores > Configuration > Orangecat > AI Translation
- Active Translation Provider: Select which AI service to use
Each provider module may add its own configuration section with specific settings (API keys, models, etc.).
All versions of translate-ai with dependencies
magento/framework Version *
orangecat/core Version ^1.0.2
orangecat/translate-ai-deepseek Version ^1.0.0
orangecat/translate-ai-openai Version ^1.0.0