Why Ghost + SiteLocaleAI for Multilingual SEO
Ghost is a powerful publishing platform, but it lacks built-in multilingual SEO. Search engines need static, translated HTML to index your content across languages. SiteLocaleAI solves this with a self-hosted JS library and CLI that pre-renders translations for search engine crawlers.
In this tutorial, you'll set up Ghost to automatically generate SEO-indexed posts in 8 languages using your own LLM API keys (Claude, GPT-4o-mini, etc.). No SaaS lock-in, no per-page fees.
Prerequisites
- A Ghost blog (self-hosted or Ghost Pro)
- Node.js 18+ installed locally (for CLI)
- An LLM API key (e.g., OpenAI or Anthropic)
- A SiteLocaleAI license (Starter plan $49 or higher recommended for multiple languages)
Step 1: Install SiteLocaleAI CLI
The CLI is the core of SEO pre-rendering. It fetches your Ghost content, translates it, and outputs static HTML files that search engines can crawl.
npm install -g @sitelocaleai/cli
Initialize the config:
sitelocaleai init --provider openai --api-key YOUR_KEY --languages en,es,fr,de,it,pt,nl,ja
This creates sitelocaleai.config.js. Adjust the languages array to your target locales. The CLI uses your LLM key directly—no data passes through our servers.
Step 2: Connect Ghost
SiteLocaleAI works with Ghost's Content API. Generate a Content API key in Ghost Admin → Integrations.
Add to your config:
export default {
provider: 'openai',
apiKey: process.env.OPENAI_API_KEY,
languages: ['en','es','fr','de','it','pt','nl','ja'],
source: {
type: 'ghost',
url: 'https://yourblog.com',
contentApiKey: process.env.GHOST_CONTENT_KEY
},
output: './public/i18n',
seo: {
prerender: true,
sitemap: true
}
};
Run the initial sync:
sitelocaleai ghost sync
This pulls all published posts and pages into a local cache.
Step 3: Translate and Pre-render
Now generate static translations:
sitelocaleai build --seo
The CLI translates each post, then writes fully rendered HTML files to ./public/i18n/{lang}/. It also creates sitemaps with hreflang tags for each language.
Example output structure:
public/i18n/
es/
blog/
my-post/index.html
fr/
blog/
my-post/index.html
sitemap-es.xml
sitemap-fr.xml
Step 4: Serve Translations from Ghost
You have two options:
- Reverse proxy: Point
/es/,/fr/, etc. to the static files. Nginx example:
location /es/ {
alias /var/www/ghost/public/i18n/es/;
try_files $uri $uri/ /index.html;
}
- Ghost routes: Use Ghost's
routes.yamlto map language paths to custom templates that load the pre-rendered content. This keeps your Ghost theme intact.
For search engines, the static files are ideal—they load fast and contain all translated meta tags.
Step 5: Automate on Publish
Add a GitHub Action or cron job to run sitelocaleai build --seo whenever you publish a new post. With Ghost webhooks, you can trigger a rebuild automatically.
Example cron (every hour):
0 * * * * cd /path/to/project && sitelocaleai ghost sync && sitelocaleai build --seo
This ensures new posts are translated and indexed within an hour.
Step 6: Optimize International SEO
SiteLocaleAI handles the technical SEO: translated <title>, meta descriptions, hreflang tags, and localized URLs. But you should also:
- Localize prices (if you sell products). SiteLocaleAI's price localization uses psychological rounding per currency.
- Use the WordPress plugin if you also run a WooCommerce store—no Node.js required.
- Monitor Search Console for each language subdirectory.
For advanced config, see the SEO pre-rendering docs and Ghost integration guide.
Why Self-Hosted LLM Keys Matter
With SiteLocaleAI, you bring your own LLM API keys. That means:
- Cost control: Pay only for tokens, not per-page markups.
- Privacy: Your content never touches our servers.
- Flexibility: Switch between Claude, GPT-4o-mini, or local models anytime.
Plans start at $5 (Indie) for one language, $49 (Starter) for up to 5, $99 (Growth) for 10, and $249 (Enterprise) for unlimited languages and priority support.
Conclusion
Ghost doesn't have to be English-only. With SiteLocaleAI's CLI and self-hosted LLM setup, you can auto-generate SEO-indexed posts in 8 languages, complete with hreflang sitemaps and localized prices. The entire workflow runs on your infrastructure, giving you full control over cost and privacy.
Ready to go global? Try SiteLocaleAI today and publish in every language your audience speaks.