Magento 2 AI Review TranslatorMagento 2 AI Review Translator
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Key Features
    • How It Works
  • Installation

    • Requirements
    • Install the Module
    • Install the AI Packages
    • Enable & Compile
    • Verify the Installation
    • Content Security Policy
    • Translating the Interface
  • Setup

    • Enable the Module
    • Activate Your Licence
    • Select an LLM Provider
    • Validate & Load Models
    • First Translation
  • Configuration

    • Overview
    • General Settings
    • Limits & Timeouts
    • Store Views & Languages
    • Admin Menu
    • Access Control
  • LLM Providers

    • Provider Overview
    • How Validation Works
    • Choosing a Model
    • Switching Providers
  • Ollama (Self-Hosted)

    • Install Ollama
    • Connect to Magento
    • Timeouts & Batch Size
    • Troubleshooting
  • Translating Reviews

    • Translation Basics
    • What Is Sent to the Model
    • Fallback Behaviour
    • Automatic Translation
    • The Queue Consumer
    • Running the Consumer
    • Bulk CLI Command
    • Batch Size
    • CLI Output & Exit Codes
  • Storefront

    • On the Storefront
    • The Toggle
    • Styling
  • Developers

    • GraphQL API
    • Querying from Code
    • Data Model
    • Useful SQL
  • Help

    • Setup Problems
    • Translation Problems
    • Queue Problems
    • Storefront Problems
    • FAQ

Bulk CLI Command

The queue only handles reviews saved after the module was installed. To translate the reviews you already have — or to re-translate everything with a new model — use the bulk command.

php bin/magento Translate:All

The bulk CLI command running with a batch size and a store filter

Options

OptionShortDefaultWhat it does
--batch-b20Reviews sent to the model in a single API call.
--store-sall store viewsStore view ID to process. Repeatable.
# Everything, default batch size
php bin/magento Translate:All

# Store views 1 and 3 only, 10 reviews per call
php bin/magento Translate:All -s 1 -s 3 -b 10

# One big-batch run against a fast provider
php bin/magento Translate:All --batch 50

What it does

  1. Loads every approved review, grouped so a review in several store views is loaded once.
  2. Chunks them by --batch.
  3. For each store view, sends each chunk to the model with that store view's locale.
  4. Upserts the results.

It bypasses the queue entirely and runs synchronously.

The work is reviews × store views

350 reviews × 3 store views = 1,050 translations
1,050 ÷ 20 per batch        =    54 API calls

Use -s to keep a run — and its cost — small.

Re-running is safe

The command upserts on review, product, and store view. Re-run it after switching model, or after changing a store view's locale, and rows are updated rather than duplicated.

Run it in screen or tmux

A backfill over thousands of reviews takes a long time. An SSH drop kills the process mid-run. Nothing is corrupted, but you start again.

Automating it

The queue already covers new reviews, so a scheduled bulk run is only useful for periodic re-translation:

0 3 * * * cd /var/www/magento && php bin/magento Translate:All -b 20 >> var/log/translate-all.log 2>&1

Next: Batch Size and CLI Output & Exit Codes.

Prev
Running the Consumer
Next
Batch Size