SEO for translated pages.
Every translated page tlucent serves emits the SEO tags search engines and social
platforms need: hreflang,
canonical, and Open Graph locale. This page
explains what's emitted, why, and how to close the reciprocity loop so Google treats
your translated site as a first-class peer of your original.
What tlucent injects into <head>
On every translated HTML response, tlucent appends the following block right before
</head>:
<!-- One tag per enabled locale (default + non-default), absolute URLs -->
<link rel="alternate" hreflang="en" href="https://intl.yoursite.com/blog/post">
<link rel="alternate" hreflang="zh-CN" href="https://intl.yoursite.com/zh-CN/blog/post">
<link rel="alternate" hreflang="ja" href="https://intl.yoursite.com/ja/blog/post">
<!-- Default-language fallback -->
<link rel="alternate" hreflang="x-default" href="https://intl.yoursite.com/blog/post">
<!-- Open Graph locale (target) + alternates (the OTHER enabled langs) -->
<meta property="og:locale" content="zh_CN">
<meta property="og:locale:alternate" content="en">
<meta property="og:locale:alternate" content="ja">
<meta name="x-tlucent-translated-by" content="tlucent-tx mvp">
Absolute URLs (Google ignores relative paths). One tag per enabled locale plus
x-default pointing at the bare canonical.
Codes use the BCP-47 hyphen form (zh-CN).
Tells Facebook / LinkedIn / Slack which language UI to show when someone shares
the page. Uses Open Graph's language_TERRITORY
underscore form (zh_CN).
By default points at the translated page itself
(self) so each locale is indexed
independently. Operators can switch to source
to consolidate ranking signals.
HTTP response header set to the target locale (e.g. zh-CN).
Crawlers and accessibility tools use this to pick dictionaries and TTS voices.
The reciprocity problem
For Google to honor hreflang, every URL in the
block on Page A must point at a page whose own hreflang
block points back. tlucent already wires the translated → original
direction. But the original → translated half is missing unless your
original site also tells Google that the translation exists.
If your original site at www.yoursite.com has
no <link rel="alternate" hreflang> tags
pointing at intl.yoursite.com, Google's
hreflang signal on your translated pages is dead weight — and your translated pages
won't appear in regional search results.
The snippet closes the loop — zero code on your side
tlucent's optional snippet (the same one our setup wizard offers for "how should visitors find the translation site?") does two jobs at once:
- Renders a small, dismissible banner at the bottom of your original page that says "View this page in [language] on intl.yoursite.com". Pure DOM, no auto-redirect.
- Injects the missing hreflang alternates pointing back at the translation site, so Google can complete the reciprocity contract on the original domain. Your translated pages become eligible for regional SERPs and credit share ranking signals.
Option A — Cloudflare Snippet
If your site already runs on Cloudflare, one wrangler
command deploys the snippet to your zone. No CMS edits, no template changes.
# Fetch the canonical snippet
mkdir -p snippets
curl -fsSL https://tlucent.com/static/tlucent-snippet.tmpl.js -o snippets/tlucent-suggest.js
# Deploy to your CF zone
wrangler snippets deploy snippets/tlucent-suggest.js --zone-id=<your-zone-id>
# In the CF dashboard, add a Snippet rule:
# Match: http.request.uri matches "/*"
# Action: rewrite → select "tlucent-suggest" snippet Option B — one <script> tag
If your site isn't on Cloudflare (or you want the simplest possible deploy), paste
this single line into your HTML <head>:
<script src="https://tlucent.com/static/tlucent-snippet.tmpl.js" defer></script> What the script does (and doesn't do)
- Reads your visitor's
Accept-Languageheader (server-side, never sent anywhere — no fingerprinting). - If a matching translation exists at
intl.<your-domain>, shows a dismissible bottom banner. - Injects the reciprocal
<link rel="alternate" hreflang>tags pointing at the translation URLs. - Sets an opt-out cookie for 365 days so returning visitors don't see the banner again.
Verify it's working
After deploying the snippet, give crawlers a few days to re-crawl. Then check:
- Page source on your original site — view source on any
www.yoursite.comURL. You should see one<link rel="alternate" hreflang="zh-CN">per enabled locale, each pointing atintl.yoursite.com/.... - Page source on your translated site — same check on
intl.yoursite.com: same set ofhreflangtags, plusog:locale/og:locale:alternate. - Google Search Console → International Targeting — once Google re-crawls, the "Language" tab will list each locale and its hreflang target.
To measure how your translated pages perform in search and AI answers, verify the translated host in your own Search Console / Bing Webmaster Tools — see Verify search & AI visibility.
Need help with deployment?
The snippet is opt-in. If you'd rather have us set it up, email hello@tlucent.com with your domain and we'll wire it within one business day.