WordPress Plugin Setup

Translate your entire WordPress site with the SiteLocaleAI plugin. No per-word fees, no complex configuration, no performance impact.

1

Install the SiteLocaleAI Plugin

Install from the WordPress plugin directory or upload manually.

In your WordPress admin panel, go to Plugins > Add New and search for "SiteLocaleAI". Click Install Now, then Activate.

Alternatively, download the plugin ZIP from our releases page and upload it manually:

After activation, you will see a new "SiteLocaleAI" menu item in your WordPress sidebar.

WordPress Admin

# Option 1: Search in WordPress admin
Plugins > Add New > Search "SiteLocaleAI"
> Install Now > Activate

# Option 2: Upload ZIP manually
Plugins > Add New > Upload Plugin
> Choose sitelocaleai-wp.zip > Install Now > Activate

docker-compose.yml

services:
  sdk:
    image: ghcr.io/hiscore-ro/sitelocaleai-sdk
    ports:
      - "4000:4000"
    environment:
      DATABASE_URL: postgres://slai:pass@db:5432/sitelocaleai
      SITELOCALEAI_LICENSE_KEY: slai_live_your_key_here
      LLM_API_KEY: sk-your-openai-key
      EXCHANGE_RATE_URL: https://open.er-api.com/v6/latest
    depends_on:
      - db

  db:
    image: postgres:18-alpine
    environment:
      POSTGRES_DB: sitelocaleai
      POSTGRES_USER: slai
      POSTGRES_PASSWORD: pass
    volumes:
      - pgdata:/var/lib/postgresql/data

volumes:
  pgdata:
2

Deploy the SDK Backend

The plugin needs an SDK backend to handle translations.

The WordPress plugin connects to your self-hosted SiteLocaleAI SDK for translations. If you have not deployed the SDK yet, use Docker Compose:

Make sure the SDK is accessible from your WordPress server. If both run on the same machine, use the internal Docker network or localhost.

docker-compose.yml

services:
  sdk:
    image: ghcr.io/hiscore-ro/sitelocaleai-sdk
    ports:
      - "4000:4000"
    environment:
      DATABASE_URL: postgres://slai:pass@db:5432/sitelocaleai
      SITELOCALEAI_LICENSE_KEY: slai_live_your_key_here
      LLM_API_KEY: sk-your-openai-key
      EXCHANGE_RATE_URL: https://open.er-api.com/v6/latest
    depends_on:
      - db
  db:
    image: postgres:18-alpine
    volumes:
      - pgdata:/var/lib/postgresql/data
volumes:
  pgdata:
3

Configure Plugin Settings

Connect the plugin to your SDK and choose languages.

Navigate to Settings > SiteLocaleAI in your WordPress admin. Fill in the following fields:

Click "Test Connection" to verify the plugin can reach your SDK. You should see a green success message.

The plugin will automatically:

  • Inject the SiteLocaleAI JS library into your page head
  • Translate page content using your chosen LLM provider
  • Cache translations in the WordPress database for fast subsequent loads
  • Add locale-prefixed URL rewrite rules (e.g. /ja/, /de/)

Plugin Settings

Settings > SiteLocaleAI

License & SDK
License Key:          slai_live_a1b2c3d4e5f6...
SDK URL (optional):   https://your-sdk.example.com
Auto-inject JS:       [x]

LLM Provider
Provider:             OpenAI
API Key:              sk-...
Model:                gpt-4o-mini

Locales
Default Locale:       en
Target Locales:       ja, de, fr, es
Cache TTL:            2592000

[Save Changes]

Browser

# Test German translation
https://your-wordpress-site.com?lang=de

# Test French translation
https://your-wordpress-site.com?lang=fr

# Test Japanese translation
https://your-wordpress-site.com?lang=ja
4

Test Translations

Visit your site and verify everything works.

Open your WordPress site in a new browser tab. You should see the language switcher widget. Click it and select a language.

To test a specific locale, add a query parameter:

Check these pages to make sure translations work correctly:

  • Homepage and static pages
  • Blog posts and archive pages
  • WooCommerce product pages (if applicable)
  • Navigation menus and widgets

If you use WooCommerce, verify that product prices are displayed in the local currency with your chosen rounding strategy.

Browser

https://your-wordpress-site.com?lang=de
https://your-wordpress-site.com?lang=fr

Your WordPress site is now multilingual!

Explore price localization and SEO pre-rendering to maximize your international reach.