Download the PHP package mage-os/module-automatic-translation without Composer

On this page you can find all versions of the php package mage-os/module-automatic-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-automatic-translation

MageOS Automatic Translation Module for Magento

Overview

The MageOS Automatic Translation module allows you to automatically translate content in your Magento store, such as products, categories, pages, and static blocks, using AI-based translation engines. The module is natively integrated with DeepL, OpenAI and Google Gemini, but it can be easily extended to support other translation engines.

Installation

  1. Install the module via Composer:

  2. Enable the module:

  3. Run the setup upgrade command:

Features

Product Translation

The product translation process is divided into two parts:

  1. Textual attributes – The translated value is directly set in the product entity.
  2. Select and Multiselect attributes – The translation of these attributes involves translating the labels of the options, not the option IDs, as option IDs remain consistent across languages.

The module automatically translates products via scheduled cron jobs for both textual and select/multiselect attributes. You can also manually translate products through a backoffice button available in the product editing page.

Cron Jobs for Product Translation:

Category Translation

Categories are translated only manually via a backoffice button. This is because the number of categories is usually much smaller than the number of products, and thus the manual translation process is more efficient.

For categories, only the following fields are translated:

Note: If you add custom attributes to categories programmatically, it is the developer’s responsibility to decide whether to translate these attributes and add them to the translation list programmatically.

Pages and Static Blocks Translation

Similar to categories, pages and static blocks can only be translated manually via a backoffice button. However, because Magento does not support multiple language versions for pages and static blocks, translation will overwrite the original content when saving. To prevent losing the original content, it is recommended to use the "Save & Duplicate" feature in the backoffice to create a copy of the page or block before translating it.

Retranslation of Products

When the module translates a product for a storeview, it values two attributes specific to that product and that storeview: "skip translation" set to "yes" and "last translation date" with the date of the translation. These attributes are automatically created by the module during installation and are updated each time the product is translated.

This process is used to "flag" the product as "already translated" preventing it from being translated again in future executions, thus improving performance.

However, if the merchant changes the basic content of the product after translation, it may need to be retranslated. The merchant can do this manually by using the button in the backoffice or by setting the "skip translation" attribute to "no" and saving the product. These operations are feasible if there are few products to be edited.

If, however, there are many products to be retranslated or the underlying content changes frequently, it may be useful to enable automatic retranslation. When enabled, this feature also includes products with the "skip translation" attribute set to "yes" in the translation process if the date in the "last translation date" attribute is older than a specified number of days, which can be configured in the settings.

Translation Engines

Configuration Options

The module provides several configuration options under Stores > Configuration > MageOS > Automatic translation with AI:

General Configuration

Catalog Translation Options

Translation Engine Configuration

Adding Additional Translation Engines

To add a new translation engine, you need to:

  1. Create a class implementing MageOS\AutomaticTranslation\Api\TranslatorInterface.
  2. Extend the module to add the new engine's API configuration in system.xml.
  3. Add an after plugin to modify the list of selectable engines in \MageOS\AutomaticTranslation\Model\Config\Source\TranslationEngineList::toOptionArray.

All versions of module-automatic-translation with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
magento/module-catalog Version ^104.0.0
deeplcom/deepl-php Version ^1.4.0
openai-php/client Version ^0.10.3
google-gemini-php/client Version ^1.0.14
guzzlehttp/guzzle Version ^7.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mage-os/module-automatic-translation contains the following files

Loading the files please wait ....