PHPackages                             pablobae/module-simple-ai-translator - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. pablobae/module-simple-ai-translator

ActiveMagento2-module[Localization &amp; i18n](/categories/localization)

pablobae/module-simple-ai-translator
====================================

AI-powered translation module for Magento 2, enabling seamless integration with services like DeepL and ChatGPT for automated language translation. Provides configurable translation settings, language pairs, and model types for enhanced localization and multi-language store capabilities.

1.0.0(1y ago)282[8 PRs](https://github.com/pablobae/magento2-adobe-simple-ai-translator/pulls)GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Apr 22Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/pablobae/magento2-adobe-simple-ai-translator)[ Packagist](https://packagist.org/packages/pablobae/module-simple-ai-translator)[ Docs](https://github.com/pablobae/magento2-adobe-simple-ai-translator)[ RSS](/packages/pablobae-module-simple-ai-translator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Simple AI Translator for Magento 2
==================================

[](#simple-ai-translator-for-magento-2)

---

SimpleAiTranslator is a Magento 2 extension that provides intelligent translation services by integrating with AI-powered APIs, including ChatGPT and DeepL, to offer easy and efficient multilingual content management.

[![Supported Magento version](https://camo.githubusercontent.com/624e39974a5c0cd1d78890340b14dac0f6026bd8a8e0cdd1f053c885c4ffc07c/68747470733a2f2f62616467656e2e6e65742f62616467652f6d6167656e746f2f322e342e342d322e342e372b)](https://camo.githubusercontent.com/624e39974a5c0cd1d78890340b14dac0f6026bd8a8e0cdd1f053c885c4ffc07c/68747470733a2f2f62616467656e2e6e65742f62616467652f6d6167656e746f2f322e342e342d322e342e372b) [![Latest Stable Version](https://camo.githubusercontent.com/abcec0b20e2c233258baafce8541eadd38f1fa97aa2fd7a16aff349e8f469e2b/687474703a2f2f706f7365722e707567782e6f72672f7061626c6f6261652f6d6f64756c652d73696d706c652d61692d7472616e736c61746f722f76)](https://packagist.org/packages/pablobae/module-simple-ai-translator) [![Ask DeepWiki](https://camo.githubusercontent.com/0f5ae213ac378635adeb5d7f13cef055ad2f7d9a47b36de7b1c67dbe09f609ca/68747470733a2f2f6465657077696b692e636f6d2f62616467652e737667)](https://deepwiki.com/pablobae/magento2-adobe-simple-ai-translator) [![License](https://camo.githubusercontent.com/349c979e1a957a0608e6c460f7d7933b9104c5e493d1a298e00b7939919358eb/687474703a2f2f706f7365722e707567782e6f72672f7061626c6f6261652f6d6f64756c652d73696d706c652d61692d7472616e736c61746f722f6c6963656e7365)](https://packagist.org/packages/pablobae/module-simple-ai-translator) [![PHP Version Require](https://camo.githubusercontent.com/3fd32a1626b07ae2ecffffa28e007d196e165cf23621a972caab974820182b0b/687474703a2f2f706f7365722e707567782e6f72672f7061626c6f6261652f6d6f64756c652d73696d706c652d61692d7472616e736c61746f722f726571756972652f706870)](https://packagist.org/packages/pablobae/module-simple-ai-translator)

[![alt Simple AI extension for Adobe/Magento 2](https://raw.githubusercontent.com/pablobae/markdown-images/master/magento2-adobe-simple-ai-translator/magento2-adobe-simple-ai-translator.gif?raw=true "Simple AI extension for Adobe/Magento 2")](https://raw.githubusercontent.com/pablobae/markdown-images/master/magento2-adobe-simple-ai-translator/magento2-adobe-simple-ai-translator.gif?raw=true)

---

Features
--------

[](#features)

- **ChatGPT Integration**: Translate text using OpenAI's powerful ChatGPT API.
- **DeepL Integration**: Utilize DeepL for high-quality translation.
- **Admin Configuration**: Fully configurable via Magento Admin (`Stores > Configuration`).
- **Unit Tests**: Ensures reliable performance and quality.
- **Error handling and logging**
- **Command-line** interface for translations
- **Unit Tests**: Ensures reliable performance and quality.

Requirements
------------

[](#requirements)

- Magento 2.4.x
- PHP 8.1 or higher
- DeepL API key (Free or Pro) and/or ChatGPT API key

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

```
composer require pablobae/module-simple-ai-translator
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
```

### Manual Installation

[](#manual-installation)

1. Create the following directory in your Magento installation: ```
    app/code/Pablobae/SimpleAiTranslator
    ```
2. Download the module and copy its contents to the above directory
3. Enable the module: ```
    bin/magento module:enable Pablobae_SimpleAiTranslator
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento cache:clean
    ```

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

[](#configuration)

Navigate to **Stores &gt; Configuration &gt; Pablobae Extensions &gt; Simple AI Translator**

### Getting API Keys

[](#getting-api-keys)

#### DeepL API Key

[](#deepl-api-key)

1. Visit [DeepL API Account](https://www.deepl.com/pro-api)
2. Sign up for a DeepL API account (Free or Pro)
3. Access your API key from the account dashboard
4. Use api-free.deepl.com for Free API or api.deepl.com for Pro API

#### ChatGPT API Key

[](#chatgpt-api-key)

1. Visit [OpenAI Platform](https://platform.openai.com/)
2. Create or log into your OpenAI account
3. Navigate to API Keys section
4. Create a new secret key
5. Store the key securely as it won't be shown again

### Configuration Options

[](#configuration-options)

#### General

[](#general)

- Enable/Disable module
- Select AI Engine (DeepL or ChatGPT)

#### DeepL Settings

[](#deepl-settings)

- API Key
- API Domain (Free/Pro)
- Default languages
- Advanced translation options

#### ChatGPT Settings

[](#chatgpt-settings)

- API Key
- Model selection
- Temperature
- Default languages
- Request timeout

Usage
-----

[](#usage)

### Admin Panel

[](#admin-panel)

The extension integrates with Magento's product management interface, allowing you to:

- Translate product descriptions
- Translate product attributes

### Command Line

[](#command-line)

Use the CLI command for batch translations:

```
bin/magento pablobae:simpleaitranslator:translate --text 'text to be translated' --language 'es'
```

### Programmatic Usage

[](#programmatic-usage)

```
use Pablobae\SimpleAiTranslator\Service\Translator;

class YourClass {
    public function __construct(
        private readonly Translator $translator
    ) {}

    public function translate(string $text, ?string $storeId = null): string
    {
        return $this->translator->translate($text, $storeId);
    }
}
```

Supported Languages
-------------------

[](#supported-languages)

### DeepL API Languages

[](#deepl-api-languages)

- English (US &amp; UK)
- German
- French
- Spanish
- Italian
- Dutch
- Polish
- Portuguese (BR &amp; PT)
- Russian
- Japanese
- Chinese And more...

### ChatGPT Languages

[](#chatgpt-languages)

ChatGPT supports a broader range of languages including:

- All major European languages
- Asian languages (Chinese, Japanese, Korean)
- Arabic
- Hindi
- African languages
- Indigenous languages And many more, as ChatGPT can understand and generate content in most world languages.

Note: While ChatGPT supports more languages, DeepL typically provides more accurate translations for its supported language pairs.

Error Handling
--------------

[](#error-handling)

The extension includes comprehensive error handling for:

- Invalid/expired API keys
- Rate limits and quota exceeded
- Network timeouts
- Invalid language codes
- Malformed responses

Testing
-------

[](#testing)

Unit tests are provided to verify the core functionalities of the API clients (ChatGPT and DeepL). To run the tests:

1. From the Magento root directory, execute: ```
    vendor/bin/phpunit -c dev/tests/unit/phpunit.xml
    ```

Make sure you have PHPUnit installed and configured for Magento.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

Support
-------

[](#support)

For issues and feature requests, please [create an issue](https://github.com/pablobae/magento2-simple-ai-translator/issues).

Alternatively, you can also join my [Slack channel](https://join.slack.com/t/aradaen/shared_invite/zt-182u0exau-Kt9YRcDG8QqRZbOyskFXaQ)

License
-------

[](#license)

[![License: GPL v3](https://camo.githubusercontent.com/48bf9b56d44f38db53ce21294cf0b9487d0a3734ab3ba1fe4c69858ae20db2c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c76332d626c75652e737667)](https://www.gnu.org/licenses/gpl-3.0)

This project is licensed under the GNU General Public License v3.0 or later. See the [LICENSE](./LICENSE) file for details.

Credits
-------

[](#credits)

Developed by Pablo César Baenas Castelló (while testing AI agents)
[www.pablobaenas.com](https://www.pablobaenas.com) | [www.aradaen.com](https://www.aradaen.com)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d819c5c766335a04ec9c154c25d0ca5958394ca64a0aab01804317f46bc9cc62?d=identicon)[pablobae](/maintainers/pablobae)

---

Top Contributors

[![pablobae](https://avatars.githubusercontent.com/u/33727260?v=4)](https://github.com/pablobae "pablobae (21 commits)")[![pablobaenas-arcmedia](https://avatars.githubusercontent.com/u/69141110?v=4)](https://github.com/pablobaenas-arcmedia "pablobaenas-arcmedia (11 commits)")

---

Tags

localizationaitranslatorecommercemagento2deeplChatGptmulti-languageadobe commerce

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pablobae-module-simple-ai-translator/health.svg)

```
[![Health](https://phpackages.com/badges/pablobae-module-simple-ai-translator/health.svg)](https://phpackages.com/packages/pablobae-module-simple-ai-translator)
```

###  Alternatives

[waavi/translation

A Translation package for Laravel 5 with database and cache support

367437.9k6](/packages/waavi-translation)[kargnas/laravel-ai-translator

AI-powered translation tool for Laravel language files

24838.8k1](/packages/kargnas-laravel-ai-translator)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[boxblinkracer/phpunuhi

Easy tool to work with translation files for validation, exports, imports and more.

83225.2k17](/packages/boxblinkracer-phpunuhi)[om/potrans

Command line tool for translate Gettext with Google Translator API or DeepL API

10515.0k4](/packages/om-potrans)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

3812.2k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
