WP Manifestindependent plugin directory
manifest / i18n / wpcalibrate-multilingual

WPCalibrate Multilingual

Professional multilingual and translation management plugin for WordPress and WooCommerce featuring automatic AI translation, subdirectory routing, HPOS compatibility, and visual editor.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-multilingual/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Professional multilingual and translation management plugin for WordPress and WooCommerce featuring automatic AI translation, subdirectory routing, HPOS compatibility, split-screen translation editor, and native WordPress dashboard auto-updates.


Table of Contents


About

WPCalibrate Multilingual is an enterprise-grade internationalization and translation engine designed from the ground up for modern WordPress architectures. Unlike legacy translation plugins that suffer from severe database bloat, lock-in tables, and aggressive memory consumption, WPCalibrate Multilingual uses lightweight custom storage tables, decoupled asynchronous queue workers, and native rewrite rules.

Whether running an international WooCommerce store with thousands of variable products, a content publication with complex Gutenberg and Elementor layouts, or a corporate enterprise portal, WPCalibrate Multilingual guarantees deterministic translation state tracking, zero query string pollution, and uncompromised page load speeds.


Architecture & Philosophy

                    ┌────────────────────────┐
                    │ WordPress Core Request │
                    └───────────┬────────────┘
                                │
                      [ UrlResolver /code/ ]
                                │
        ┌───────────────────────┼───────────────────────┐
        ▼                       ▼                       ▼
┌──────────────┐        ┌──────────────┐        ┌──────────────┐
│ Post / Page  │        │ WooCommerce  │        │ Gettext / UI │
│ Translation  │        │ Product Sync │        │   Strings    │
└───────┬──────┘        └───────┬──────┘        └───────┬──────┘
        │                       │                       │
        ▼                       ▼                       ▼
┌──────────────────────────────────────────────────────────────┐
│               WPCalibrate Decoupled Storage                  │
│  wp_wpcalibrate_translations   wp_wpcalibrate_strings        │
│  wp_wpcalibrate_jobs           wp_wpcalibrate_string_trans   │
└───────────────────────────────┬──────────────────────────────┘
                                │
                                ▼
         ┌────────────────────────────────────────────┐
         │       Asynchronous Translation Queue       │
         │ DeepL • Google Cloud • OpenAI • Gemini • MS│
         └────────────────────────────────────────────┘
  1. Lightweight Custom Storage: Retains translation relationships, content hashes, and queued jobs in 4 purpose-built tables (wp_wpcalibrate_translations, wp_wpcalibrate_strings, wp_wpcalibrate_string_translations, wp_wpcalibrate_jobs) without corrupting core wp_posts and wp_postmeta.
  2. Deterministic Content Hashing: Uses MD5 fingerprinting across title, slug, excerpt, content, and metadata to instantly detect when source content is updated, flagging target translations as needs_review or outdated.
  3. In-Memory String Cache: Preloads and caches gettext translations per request to completely eliminate N+1 database queries on __ and _e lookups.
  4. Provider-Agnostic AI Pipeline: Connects seamlessly with premier machine translation and LLM engines with secure API key masking and automated fallback routines.

Features

Automated AI Translation

Connect and batch-translate entire catalogs using top-tier translation APIs:

  • DeepL API: Free & Pro tier support with formal/informal tone customization.
  • Google Cloud Translation: v2 and v3 Advanced REST integration with glossary support.
  • OpenAI (GPT-4o / GPT-4o-mini): Context-aware prompts with strict HTML tag and shortcode placeholder preservation.
  • Google Gemini (Gemini 1.5 Pro / Flash): Ultra-fast LLM translation with JSON schema response enforcement.
  • Microsoft Azure Translator: Enterprise translation with profanity filtering and alignment data.
  • Secure Key Masking: Sensitive API credentials are fully masked in the admin dashboard (e.g., sk-proj-****abcd).

Visual Side-by-Side Editor

  • Split-screen interface comparing original source and target translation in real time.
  • Granular side-by-side editing for Title, Slug, Excerpt, Content body, and Custom Metadata.
  • Visual translation status badges (Complete, Needs Review, Draft, Translating, Failed).
  • Direct "Translate with AI" trigger inside the editor view for instantaneous draft generation.

Subdirectory Routing & URL Architecture

  • Clean subdirectory permalinks for all localized content (e.g., example.com/es/sobre-nosotros/, example.com/fr/boutique/).
  • Zero query string parameters (?lang=es is never used).
  • Automatic bidirectional link rewriting for internal links.
  • Fallback and language root routing (/ displays default language without redirection delays).

WooCommerce HPOS Integration

  • 100% High-Performance Order Storage (HPOS) declared compatibility.
  • Two-Way Product Synchronization: Automatically synchronizes inventory stock, prices, SKUs, and dimensions across localized product variants.
  • Cart Locale Preservation: Maintains cart line items across language switching without cart clearing.
  • Order Language Tracking: Automatically captures customer checkout language in order metadata.
  • Localized Transactional Emails: Customer notifications and invoice emails are dispatched in the customer's purchase locale.

Modern Builder Support (Gutenberg & Elementor)

  • Gutenberg: Recursively inspects block trees, translating text and heading blocks while preserving block comments, attributes, and inner block hierarchies.
  • Elementor: Traverses nested JSON element structures, extracting widget text, headings, buttons, and iconography while preserving style and typography settings.
  • Custom Fields Policy Engine: Define rules (Copy, Translate, Ignore, Sync) per custom field across Advanced Custom Fields (ACF), Meta Box, and native custom fields.

High-Performance String Translation

  • Dynamic discovery engine registers frontend and admin strings from plugins and themes.
  • In-memory lookup table ensures gettext translations incur near-zero overhead.
  • Filter by text domain, translation status, or search query.

Multilingual SEO Engine

  • Automatic <link rel="alternate" hreflang="..." href="..."> tags generated across all post types, taxonomies, and store archives.
  • Proper x-default alternate tags pointing to primary language counterparts.
  • Canonical URLs generated per language to eliminate duplicate content penalties.
  • Seamless XML sitemap integration with Yoast SEO and Rank Math.

Customizable Language Switcher

  • Render switchers anywhere: Header, Footer, Navigation Menus, or Sidebar.
  • Choose between Dropdown, Horizontal List, or Flags Only.
  • Switcher options: Display language flags, native names, or international English labels.
  • Available as a Shortcode, Gutenberg Block, and PHP Template Tag.

WordPress Dashboard Auto-Updates

  • Native GitHub Releases updater integration.
  • Automatically checks zeeshanraza-official/wpcalibrate-multilingual for updates during standard WordPress update cycles.
  • Administrators can view release notes and update directly from the WordPress Plugins and Dashboard → Updates pages with a single click.
  • Zero external updater plugins required. Fully compatible with Git Updater.

Documentation & Usage

System Requirements

  • WordPress: 6.2 or higher
  • PHP: 8.2 or higher
  • Database: MySQL 5.7+ or MariaDB 10.3+
  • PHP Extensions: curl, json, mbstring, openssl
  • WooCommerce (Optional): 8.0+ with HPOS enabled

Installation

Option 1: WordPress Admin Dashboard (ZIP Upload)

  1. Download the latest wpcalibrate-multilingual-1.0.0.zip from Releases.
  2. In your WordPress admin, navigate to Plugins → Add New → Upload Plugin.
  3. Select the downloaded ZIP file and click Install Now.
  4. Click Activate Plugin.

Option 2: Git Clone

cd wp-content/plugins/
git clone https://github.com/zeeshanraza-official/wpcalibrate-multilingual.git wpcalibrate-multilingual

Getting Started

  1. Add Languages: Navigate to WPCalibrate → Languages in your WordPress admin. Set your default language (e.g., English) and add your target languages (e.g., Spanish, French, German).
  2. Configure Routing: Choose your URL prefix slug format and save permalinks under Settings → Permalinks.
  3. Configure AI Provider: Go to WPCalibrate → Automatic to enter your API key for DeepL, OpenAI, Gemini, Google Cloud, or Microsoft Translator.
  4. Place Language Switcher: Add the [wpcalibrate_language_switcher] shortcode in your header/footer template, or insert the WPCalibrate Language Switcher block in the Site Editor.
  5. Translate Content: Visit WPCalibrate → Translations to start translating posts, pages, and products using the visual side-by-side editor or trigger batch automatic translation.

Shortcodes & Template Tags

Shortcode

[wpcalibrate_language_switcher type="dropdown" show_flags="1" show_names="1"]

Parameters:

  • type: dropdown | list | flags (default: dropdown)
  • show_flags: 1 | 0 (default: 1)
  • show_names: 1 | 0 (default: 1)
  • class: Custom CSS class names to append to the switcher wrapper.

PHP Template Tag

<?php
if (function_exists('wpcalibrate_multilingual_language_switcher')) {
    wpcalibrate_multilingual_language_switcher([
        'type'       => 'list',
        'show_flags' => true,
        'show_names' => true,
        'class'      => 'custom-header-switcher',
    ]);
}
?>

Developer Filters & Action Hooks

Locale Detection Filter

Override detected locale based on custom headers, geolocation, or session cookies:

add_filter('wpcalibrate_multilingual_detect_locale', function (string $locale, string $code): string {
    // Custom logic (e.g., GeoIP detection)
    return $locale;
}, 10, 2);

Custom Fields Policy Filter

Programmatically configure how specific custom meta keys should be handled during translation:

add_filter('wpcalibrate_multilingual_custom_fields_policy', function (array $policy): array {
    $policy['my_custom_tracking_id'] = 'copy';      // Always copy exact value
    $policy['my_custom_banner_text'] = 'translate'; // Queue for translation
    $policy['my_internal_debug_data'] = 'ignore';   // Do not synchronize
    return $policy;
});

Translation Completed Action

Hook into completed translation events to trigger cache purges or webhooks:

add_action('wpcalibrate_multilingual_translation_completed', function (int $targetPostId, string $locale, int $sourcePostId): void {
    // Trigger third-party cache purge or external notification
});

REST API Catalog

The plugin provides a secure, token-authenticated REST API under the namespace wpcalibrate-multilingual/v1:

Method Route Description Capability Required
GET /wp-json/wpcalibrate-multilingual/v1/languages List all configured languages manage_options
POST /wp-json/wpcalibrate-multilingual/v1/languages Create or update a language entry manage_options
GET /wp-json/wpcalibrate-multilingual/v1/translations List translation records & statuses edit_posts
POST /wp-json/wpcalibrate-multilingual/v1/translate Dispatch async translation job edit_posts
GET /wp-json/wpcalibrate-multilingual/v1/strings Query discovered gettext strings manage_options
GET /wp-json/wpcalibrate-multilingual/v1/queue/status Real-time worker and queue depth manage_options
POST /wp-json/wpcalibrate-multilingual/v1/queue/retry Retry failed background jobs manage_options

Background Queue & WP-Cron

WPCalibrate Multilingual processes heavy translation tasks asynchronously in the background via wp_wpcalibrate_jobs to prevent browser timeouts and server memory exhaustion.

  • Worker Hook: wpcalibrate_multilingual_queue_worker
  • Default Interval: Every 5 minutes (or on-demand batch execution)
  • Transient Locking: Utilizes atomic locking (wpcalibrate_multilingual_worker_lock) to eliminate race conditions.
  • WP-CLI Trigger: Run pending queue items immediately via terminal:
    wp cron event run wpcalibrate_multilingual_queue_worker

Changelog

[1.0.0] - 2026-10-24

  • Initial Release: Complete enterprise multilingual translation suite for WordPress and WooCommerce.
  • Database Schema: Introduced versioned database migration runner with 4 custom tables.
  • Routing: Native /<code>/ subdirectory URL rewrite manager with zero query string pollution.
  • AI Engine: Integrated DeepL, Google Cloud Translation, OpenAI GPT-4o, Google Gemini, and Microsoft Azure Translator adapters.
  • Editor: Visual split-screen translation interface comparing title, slug, excerpt, content, and metadata.
  • WooCommerce: Declared HPOS compatibility, inventory/price sync, order language capture, and customer email localization.
  • Modern Builders: Added block-level Gutenberg translator and recursive JSON Elementor tree translator.
  • SEO: Built automatic hreflang, canonical URLs, and Yoast & Rank Math XML sitemap extensions.
  • Overview Tab: Interactive dashboard tab with live operational metrics, purpose breakdown, methodology, and 6-step workflow.
  • Auto-Updates: Built-in GitHub updater connecting with GitHub Releases for one-click dashboard updates.

License & Credits