Security, Users & Multilingual

Setting Up Multi-Language Translations, OpenAI Batch Translation, and the Queue Monitor

Published 2026-12-04 03:20:21

How Site Store Pro Localization Works

Site Store Pro stores translations in dedicated *_translations child tables across 24+ content models—covering Products, Variants (attributes & personalization), Categories, CMS Pages, Navigation Menus, Header/Footer Blocks, Forms, Modals, Slideshows, FAQs, Testimonials, Email Templates, KB Articles, Inventory Alerts, Plugins, and Site Labels.

Visitors switch languages via GET /set-language/{code}, persisted across both session (language_code) and a 1-year unencrypted cookie (app_language). Languages support custom native names, flag emojis, RTL layouts, and localized currency/number separators.

Configuring OpenAI Batch Translations

  1. Add OPENAI_API_KEY=sk-... to your .env file.
  2. Open Admin → CMS → Languages (/admin/languages) and enable your target languages.
  3. Click Bulk Translate All or Translate Missing Only, or open the per-language dashboard at /admin/languages/{languageId}/translations to inspect coverage stats and translate individual content types or records.

TranslationService uses OpenAI gpt-4o-mini in JSON batch mode, automatically protects <style>, <script>, <svg>, and [shortcode] tags with safe placeholder tokens, and chunks large CMS HTML pages exceeding 8,000 characters at block boundaries to avoid gateway timeouts.

Managing Background Jobs with the Queue Monitor

Visit /admin/languages/queue-monitor to monitor pending jobs, failed jobs, processed totals, and the trailing 150 lines of storage/app/queue_worker.log. You can Start or Stop a cross-platform background worker directly from the Admin UI (no SSH required), or retry, delete, and flush failed jobs with one click.

Tip: After adding or translating a language, rebuild your static header/footer cache at /admin/cms-header-footer so the new language is pre-rendered cleanly.

Was this article helpful?

Let us know how we can improve our documentation.