Skip to content

Optional analytics, session recording and advertising stay off unless you accept. You can reject them and use Transglot. Change your choice anytime in Cookie preferences. Cookie Policy

Back to the blog
Best practices

Website Localization: The Complete Guide (2026)

How to localize a website: delivery methods, URL structure, hreflang, canonicals, language switching, what to translate, launch plan and a checklist.

by transglot team
published November 23, 2026
27 min read

Documentation reviewed 23 November 2026.

Quick answer

Website localization means adapting a site for a market: its language, but also its URLs, metadata, formats, payment options, legal pages and layout. To localize a website, give every language its own URL, link the versions with hreflang, set the lang attribute on each page, and translate everything a visitor or a search engine reads, not only the body text. Do not redirect visitors automatically by IP address or browser language. Show a visible language switcher and remember the choice. Then put a process in place so a change to the source page reaches every language, because a site is never finished.

Who this guide is for

This guide is for marketing, product and web engineering leads who own a site that has to work in more than one language or country. At the end you will have:

  • A delivery method chosen by fit.
  • A URL structure and a correct set of hreflang annotations.
  • A list of everything that needs translating.
  • A launch plan, a way to measure results per market and a checklist.

Part 1: localization is more than translating pages

Translation changes the words. Localization changes whatever would look wrong, break or mislead in the target market.

LayerTranslation covers itLocalization adds
Body textYesExamples, tone and references that fit the market
SearchNoKeywords people in that market type, per-language URLs, hreflang
FormatsNoDates, numbers, currency, addresses, phone numbers
CommerceNoLocal payment methods, prices, shipping and returns
LayoutNoRoom for longer text, right to left for Arabic and Hebrew
LegalNoPrivacy notice, terms and consent in the local language
OperationsNoA process that keeps every language current

Google separates two kinds of site. A multilingual site offers content in more than one language. A multi-regional site explicitly targets users in different countries. A site can be both. Decide which you are building before choosing URLs.


Part 2: four ways to deliver a multilingual site

There are four delivery methods. They are described here by fit, in no order.

MethodHow it worksSEOSpeed to launchControlCost shapeFits
Translated content in the CMSEach entry or page holds a value per locale. Templates render a URL per localeStrong, if templates output hreflang and localized metadataMedium. Content model and templates need workHigh. Editors own every fieldCMS plan plus translationContent-heavy sites with an editorial team
i18n in the site's code with locale filesText lives in JSON, YAML or Markdown files in the repository. The framework routes /de/ and renders from the filesStrong, when pages are rendered on the server or at build timeSlow first time. Strings must be extractedHighest. Everything is in version controlEngineering time plus translationWeb apps and developer-owned marketing sites
Translation proxy or JavaScript overlayA service detects the text of the live site and serves translated pages, or swaps text in the browserDepends on whether each language gets its own server-rendered URLFastest. Little or no template workLower. The translated site lives in the vendor's layerSubscription, for as long as the site is liveTeams with no engineering time, or sites on closed builders
Separate sites per marketEach country has its own site, content and often its own teamStrong per market. Authority and effort are splitSlowestFull, per marketHighest. Everything is duplicatedMarkets with different products, prices or legal entities

Examples, limited to what each vendor's own documentation states:

  • CMS. Contentful enables locales per space and per field, with fallback locales. WPML, for WordPress, offers languages in directories, a domain or subdomain per language, or a language parameter. Shopify gives each published language its own URLs and states that it adds hreflang tags through the theme's content_for_header object. See best CMS translation tools for content teams and AI translation for Shopify stores.
  • Code. The Next.js internationalization guide nests routes under app/[lang], loads a dictionary per locale on the server and sets <html lang> from the route. Astro has built-in i18n routing configured with locales and defaultLocale. Translate a React or Next.js app automatically covers keeping those files translated.
  • Proxy. Smartling calls its Global Delivery Network a translation proxy that continuously crawls the site and translates new content. Weglot says it detects a page's content, creates subdirectories or subdomains per language, adds hreflang tags and translates server-side. The Weglot comparison sets a proxy next to a file-based workflow.

The honest trade-offs

Proxy and overlay. A site can be multilingual in days. The cost is dependence: the translated pages exist only while the subscription runs, and fixes happen in a second system. For SEO, one question decides everything: does each language get its own URL that returns translated HTML from the server? If text is swapped in the browser on a single URL, there is no separate page to index.

CMS. The usual answer for a marketing site. The work is in the content model: every field a visitor reads has to be localizable, including SEO titles, alt text and button labels kept in a settings entry.

Code. The most control and the cleanest output. Developers become the bottleneck for copy changes unless long-form content moves to Markdown or a CMS.

Separate sites. Justified when markets differ in substance. If the German site is the English site in German, one site with locales is less work to keep correct.

Whatever the method, the test is the same: request the German URL with JavaScript disabled and no cookies. If the response is German HTML with German metadata, search engines can index it.
Rule

Many sites combine methods: a CMS for pages and locale files for the application shell.

Four cream paper-pulp gateways side by side on a dark stone plinth, each a different shape, with paper pages passing through
Four ways to deliver a multilingual site

Part 3: URL structure

Google recommends a different URL for each language version of a page, and advises against using cookies or browser settings to change the language of content on one URL. Its documentation on multi-regional and multilingual sites lists four structures.

StructureExamplePros (per Google)Cons (per Google)
Country-code domainexample.deClear geotargeting, server location irrelevant, easy separation of sitesExpensive, more infrastructure, sometimes strict registration rules, targets one country only
Subdomain on a generic domainde.example.comEasy to set up, allows different server locations, easy separation of sitesUsers may not tell from the URL whether "de" is a language or a country
Subdirectory on a generic domainexample.com/de/Easy to set up, low maintenance on one hostSame ambiguity, single server location, harder separation of sites
URL parameterexample.com?loc=deNone listedMarked not recommended: segmentation by URL is difficult

Practical reading:

  • Subdirectories suit most sites: one host and one deployment.
  • Subdomains suit a market that runs on separate infrastructure.
  • Country-code domains suit a business that targets a country, not a language. A .de domain is a strong country signal, so it is a poor home for content meant for German speakers in Austria and Switzerland.

Google treats some country-code domains as generic, including .co, .io, .ai, .me and .tv. Localized words in URLs and internationalized domain names are fine. Google recommends UTF-8 in URLs.

Google's other locale signals are server location, which it calls not definitive, local addresses and phone numbers, local language and currency, and links from local sites. It ignores locational meta tags such as geo.position.

Choose language folders or country folders deliberately. /de/ for the German language and /de/ for Germany look identical and mean different things. If you will ever need both, use /de-de/, /de-at/ and /de-ch/ from the start.
Watch out

Part 4: hreflang done correctly

hreflang tells Google which URLs are language or regional versions of the same page. Google may find the versions without help and still recommends explicit annotations.

The rules

  1. Every version lists every version, including itself. The set of annotations is identical on each page in the group.
  2. Links must be returned. If page X points to page Y, page Y must point back. Google states that when two pages do not both point to each other, the tags are ignored.
  3. URLs are fully qualified, with https://. Root-relative and protocol-relative URLs are not allowed.
  4. Add x-default for a fallback page shown to users whose language matches none of your versions. It suits a language selector or a home page.

The codes

  • The language is an ISO 639-1 code: de, en, fr.
  • An optional region is an ISO 3166-1 Alpha 2 code: en-GB, de-CH.
  • An optional script is an ISO 15924 code: zh-Hant, zh-Hans.
  • A region alone is not valid. The first code is always a language: be is Belarusian, not Belgium.
  • es-419 is not supported. EU, UN and UK have no effect. The United Kingdom is GB.

Use a language-only code when one page serves all speakers of a language. Use language plus region when content differs by country, for example in currency. With several regional pages in one language, Google advises a generic version for that language too. One of the regional pages can take that role.

Placement 1: HTML head

The head of the German page. The English and French pages carry the same four alternate lineshtml
<head>
<link rel="canonical" href="https://example.com/de/pricing" />
<link rel="alternate" hreflang="en" href="https://example.com/pricing" />
<link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
</head>

Placement 2: HTTP header

Use this for files with no HTML head, such as PDFs. The header lists every version, including the one requested.

One Link header, returned with each of the three PDF fileshttp
Link: <https://example.com/guide.pdf>; rel="alternate"; hreflang="en",
<https://example.com/de/guide.pdf>; rel="alternate"; hreflang="de",
<https://example.com/fr/guide.pdf>; rel="alternate"; hreflang="fr"

Placement 3: XML sitemap

Each url entry repeats the full set. The child links do not count toward sitemap URL limitsxml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://example.com/pricing</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing"/>
<xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing"/>
<xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing"/>
</url>
<url>
<loc>https://example.com/de/pricing</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing"/>
<xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing"/>
<xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing"/>
</url>
<url>
<loc>https://example.com/fr/pricing</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing"/>
<xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing"/>
<xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing"/>
</url>
</urlset>

Google treats the three placements as equivalent and says using all of them brings no benefit and is harder to maintain. Pick one. The sitemap keeps pages lighter on sites with many languages. The head is easier to inspect.

Common hreflang errors

  • A page missing from its own set.
  • Missing return links.
  • Relative URLs.
  • en-UK, a bare country code, or es-419.
  • Tags that end up outside <head> in the rendered page. Check the rendered HTML.
hreflang is a closed group. Every member names every member, itself included, with absolute URLs. Generate it from one list of locales in code, never by hand.
In short
A ring of cream paper-pulp posts on a dark stone plinth, each joined to every other by thin paper cords, one teal glass bead at the centre
Every version points to every version, itself included

Part 5: canonical tags, lang and dir

Canonical tags with translated pages

A translated page is not a duplicate of its source. Google considers localized versions duplicates only when the main content stays untranslated. Each language version should name itself as canonical. Pointing every translation's canonical at the English page asks Google to drop the translations.

Google's guidance adds two points: when you use hreflang, specify a canonical page in the same language, and use absolute URLs in rel="canonical".

Where the same language sits on two URLs, such as example.de/ and example.com/de/, pick one, mark it canonical and annotate both with hreflang.

The lang attribute

The W3C's rule is to always declare the default language of the page with a lang attribute on the html tag, using a BCP 47 language tag. Put it on html, not body, so it covers text in the head. Mark any passage in another language with its own lang. The W3C says never to use a meta element with http-equiv set to Content-Language for this.

lang is there for browsers and other software that style or process the text. It is not a ranking tool: Google states that it determines a page's language from the visible content and does not use lang attributes or the URL. So keep each page in one language, navigation included, and avoid side-by-side translations.

The dir attribute

For a right to left language, the W3C says to add dir="rtl" to the html tag and not to set base direction with CSS. Left to right is the default and needs no attribute. For text whose direction you cannot know in advance, such as a user's name or a comment, use dir="auto".

An Arabic page. dir on html flips block alignment, table columns and form inputhtml
<html lang="ar" dir="rtl">
<head>
<meta charset="utf-8" />
<title>الأسعار</title>
</head>
<body>
<p>مرحبا <bdi dir="auto">Example Ltd</bdi></p>
</body>
</html>

Part 6: language detection and switching

It is tempting to detect where a visitor is and send them to "their" language. Google advises against it on three grounds:

  • Automatic redirects between language versions can stop users and search engines from seeing all versions of the site.
  • IP location is unreliable, so it says not to use IP analysis to adapt content.
  • Googlebot sends no Accept-Language header and crawls mostly from US IP addresses, so a site that decides from those two inputs shows it one version.

The W3C treats Accept-Language as a reasonable hint and names its limit: the result is sometimes a language the reader does not want, for example on a borrowed computer.

A pattern that satisfies both:

  1. Requesting a language's URL always returns that language. No redirect.
  2. Every page shows a visible language switcher.
  3. Each option is written in its own language: "Deutsch", not "German". The W3C advises against flags, which stand for countries.
  4. The switcher links to the same page in the other language.
  5. A click stores the choice in a cookie or localStorage.
  6. If the browser language differs from the page and no choice is stored, show a dismissible notice. Suggest, do not redirect.
Plain links. Crawlers can follow them, and each label carries its own langhtml
<nav aria-label="Language">
<ul>
<li><a href="https://example.com/pricing" lang="en" hreflang="en">English</a></li>
<li><a href="https://example.com/de/pricing" lang="de" hreflang="de">Deutsch</a></li>
<li><a href="https://example.com/fr/pricing" lang="fr" hreflang="fr">Français</a></li>
</ul>
</nav>
Framework examples often redirect by Accept-Language in middleware. That is fine on the bare root URL. Applied to URLs that already contain a locale, it overrides the visitor's choice and hides versions from crawlers.
Watch out

Part 7: what to translate beyond body text

Most gaps on a localized site are in text nobody listed. Use this as the inventory.

ItemWhy it mattersNote
Title tag and meta descriptionThey are the search resultWrite for the local keyword, do not translate word for word
Image alt textRead by screen readers. Google calls it the most important attribute for image metadataDescribe the image in the page's language
URLs and slugsGoogle accepts localized words in URLsOptional. If you translate slugs, keep a map so hreflang and the switcher still pair pages
Structured dataNames and descriptions in JSON-LD are contentTranslate the values. inLanguage takes a BCP 47 code
Open Graph tagsThey are the preview when a page is sharedog:locale uses the language_TERRITORY form and defaults to en_US
Navigation, footer, buttonsHalf-translated chrome reads as unfinishedOften stored outside the page content
FormsLabels, placeholders, validation messages, confirmation pagesCheck field order for names and addresses
Error pages and empty states404, 500, "no results"Usually hardcoded
Transactional emailSign-up, receipt, password resetSend in the language the visitor used
Legal pagesPrivacy notice, terms, cookie bannerSee Part 11
Images with textA translated page with an English screenshotPrefer live text over text in images
VideoCaptions and transcriptsCaptions are text and can be translated like any other
Site searchResults and "did you mean"Index per language
PDFs and downloadsLinked from translated pagesAnnotate with the Link header from Part 4
Open Graph and JSON-LD on the German page, with translated valueshtml
<meta property="og:locale" content="de_DE" />
<meta property="og:locale:alternate" content="en_US" />
<meta property="og:locale:alternate" content="fr_FR" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Preise",
"description": "Tarife und Leistungen im Überblick.",
"inLanguage": "de",
"url": "https://example.com/de/pricing"
}
</script>

Keyword research per language

A translated keyword is a guess. People in another market may search with a different word, an English loan word, a brand name or a longer phrase. For each priority page:

  1. Ask a native speaker how someone would search for this.
  2. Check those terms in a keyword tool set to the target country, or in Search Console once the pages have impressions.
  3. Look at the results for each term. If they show a different kind of page from yours, the intent differs.
  4. Put the chosen term in the title, first heading and meta description.
  5. Record it in the glossary so later translations use it. Glossary and terminology at scale explains how to keep that list.

Part 8: formats, payments and trust

Dates, numbers and currency

Never format by hand. 12/11/2026 is December in the United States and November in the United Kingdom. Browsers and Node.js ship the Intl API, which formats by locale.

Outputs as shown in the MDN reference, which assumes the America/Los_Angeles time zone for the datesjs
const price = 123456.789;
new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(price);
// "123.456,79 €"
new Intl.NumberFormat("ja-JP", { style: "currency", currency: "JPY" }).format(price);
// "¥123,457"
const date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
new Intl.DateTimeFormat("en-US").format(date); // "12/19/2012"
new Intl.DateTimeFormat("en-GB").format(date); // "19/12/2012"
new Intl.DateTimeFormat("ko-KR").format(date); // "2012. 12. 19."

Formatting is not pricing. Decide separately whether you convert, set a price per market, or show one currency everywhere.

Addresses, names and phone numbers

  • Do not require a "State" or a five-digit postal code everywhere.
  • A single "Full name" field avoids assumptions about name order.
  • Accept phone numbers with a country code.
  • Let the visitor choose country and language separately.

Payment methods and local trust signals

A translated checkout that offers only your home market's payment methods loses people at the last step. Ask your payment provider which methods it supports in each target country.

Trust is local too. Google lists local addresses and phone numbers, local language and currency among the signals it uses to work out which market a page targets, and the same details reassure visitors. Add a local contact address, support hours in local time, and returns and delivery terms for that country.


Part 9: design for text expansion and right to left

Text expansion

Text translated from English usually gets longer, and short strings grow the most. The W3C cites IBM figures for English into European languages: strings of up to 10 characters expand by 200 to 300% on average, and text over 70 characters by 130%. German, Finnish and Dutch form long compound words that will not wrap. Thai, Arabic, Chinese and Japanese often need more line height.

  • Let buttons, tabs and cards grow with their content. No fixed widths on anything that holds text.
  • Test navigation with the longest language you plan to ship.
  • Keep text out of images.
  • Set line height per language where a script needs it.

Right to left

With dir="rtl" on the html tag, the browser mirrors most of the layout for you, provided the CSS does not hardcode left and right. CSS logical properties define direction-relative equivalents of the physical ones.

One stylesheet for both directions. Start is left in English and right in Arabiccss
.note {
margin-inline-start: 1rem; /* replaces margin-left */
padding-inline: 1rem; /* replaces padding-left and padding-right */
border-inline-start: 2px solid currentColor;
text-align: start; /* replaces text-align: left */
}
.badge {
position: absolute;
inset-inline-end: 0; /* replaces right: 0 */
}

Mirror icons that show direction, such as back arrows. Leave logos and numbers as they are.


Part 10: performance

  • Fonts for non-Latin scripts. Check that your web font contains the script before you launch a language. If you ship fonts for several scripts, declare a unicode-range on each @font-face rule: the browser downloads a font file only when the page uses at least one character in its range.
This file is fetched only on pages that contain Cyrillic characterscss
@font-face {
font-family: "Site Sans";
src: url("/fonts/site-sans-cyrillic.woff2") format("woff2");
unicode-range: U+0400-04FF;
}
  • Render on the server or at build time. Translations fetched in the browser after load add a request and can show the source language first.
  • Use a CDN. A subdirectory site has one origin, so distant markets depend on the edge cache.
  • Cache per URL. With a URL per language, pages cache cleanly.
  • Load one language. Send the visitor the strings for their locale, not every locale.

This section is orientation, not legal advice. Rules differ by country and by what you sell. Have a lawyer who knows each market review these pages before launch.

  • Privacy notice and terms. If you invite people to buy in a language, expect to give them the terms and the privacy notice in that language. Some jurisdictions have their own language rules for consumer information.
  • Cookie consent. The European Union's guidance for businesses says some cookies need the user's consent before use, and that visitors must receive clear and comprehensive information about the cookies a site uses. A banner in a language the visitor does not read is hard to call clear. Translate it with the page.
  • Consumer information. Company details, prices, taxes, delivery costs and return rights have country-specific requirements.
  • Marketing consent. Opt-in wording on forms is legal text and needs review.

Part 12: keeping translations current

A site changes every week, and each change is a chance for one language to fall behind. The process needs four properties:

  1. One source of truth. Source text is edited in one place: the CMS or the repository.
  2. Change detection. When a source page or string changes, its translations are marked out of date automatically.
  3. A trigger. Publishing in the CMS, or merging to the main branch, starts translation without a ticket.
  4. A rule for stale pages. Decide what a visitor sees when a translation is behind. For prices and legal text, an old translation is the dangerous choice.

For a site built from locale files, the loop runs in CI: a push uploads changed strings and translated files come back as a commit. Localization as code describes that setup. For a CMS, the loop runs through a connector or webhook: publish, translate, review, write back.

Add two safety nets: fail the build when a locale is missing keys, and crawl each locale on a schedule to check hreflang pairs, canonicals and lang.


Part 13: AI translation with review

AI translation makes a first version of a whole site affordable. It does not remove the need for a person on pages where an error costs money or trust. AI translation vs human translation covers where the line sits.

Google's position is about value, not tools. Its spam policy on scaled content abuse names automated transformations such as translating as abuse where little value is provided to users. An accurate, complete page that helps a reader in that market is not what the policy describes.

Always have a native reader review:

  • The home page, pricing page and checkout.
  • Titles and meta descriptions of pages that bring search traffic.
  • Legal pages, consent wording, refunds, warranties and safety text.
  • Brand terms, slogans and humour.
  • Navigation labels and calls to action.
  • Anything medical, financial or regulated.

Automate the mechanical checks so reviewers spend their time on meaning. Automated localization QA lists what a machine can check.


Part 14: AI search and localized pages

Google states that there are no additional requirements to appear in AI Overviews or AI Mode, that no special markup is needed, and that a page must be indexed and eligible to be shown with a snippet to appear as a supporting link. So the work in Parts 3 to 7 that gets a translated page indexed also makes it eligible there. Google's page says nothing specific about languages. No primary documentation on localized pages was found for other answer engines, so none is described.


Part 15: measuring results

Search Console

  • The Performance report groups data by Queries, Pages, Countries, Devices, Search appearance and Dates.
  • Filter Pages with a custom regular expression to isolate one locale, for example ^https://example\.com/de/. Search Console uses RE2 syntax, and matching is partial by default.
  • Filter or compare by country. English pages still appearing in Germany points to a hreflang problem.
  • Read the queries per locale. They feed the keyword list from Part 7.

Analytics

In Google Analytics 4, the Language dimension is the language of the visitor's browser or device, not of the page they read. To report by site locale, group by the first folder of the page path, or by hostname.

Compare organic entrances, conversion rate and switcher use per locale. A locale where many visitors switch away on arrival is being shown to the wrong people.


Part 16: a launch plan

PhaseWorkDone when
1. DecideMarkets, languages, language or country targeting, delivery method, URL structureA one-page decision record exists
2. PrepareMake every field localizable, extract hardcoded strings, switch to logical CSS, add Intl formattingA pseudo-translated build shows no source-language text and no broken layout
3. Build the plumbingLocale routing, lang and dir, hreflang, canonicals, per-locale sitemap, switcherA crawl of staging shows a complete hreflang group on every page
4. ResearchKeywords per language for priority pages, glossary of product termsEach priority page has a target term per language
5. TranslateAI first pass, mechanical checks, human review of the list in Part 13Reviewers have signed off the priority pages
6. Localize the restPayment methods, legal pages, email, images, formsA native speaker completes a purchase or sign-up without meeting the source language
7. Launch one languagePublish, submit the sitemap, watch indexing and errorsPages are indexed and appear for local queries
8. Roll out and maintainAdd languages in batches, wire the update process from Part 12A source change reaches every language without a manual step

Launch one language first. Template problems show up once, and later languages reuse the fix.

A cream paper-pulp staircase of eight broad steps on a dark stone plinth, a small paper flag on each step and a teal glass sphere on the first
Eight phases, one language first

Doing this with Transglot

Transglot is a continuous localization platform. It translates site text that lives in locale files or in a CMS. It has no website proxy and no JavaScript snippet that translates a live page, so it fits the first two methods in Part 2.

What exists for websites, per its documentation:

  • Sites built in code. npx transglot@latest init finds the locale files and runs the first translation. After that, transglot push --wait and transglot pull, or the GitHub Action on every push. It reads 20 file formats, including JSON, YAML, gettext PO and Markdown or MDX (format id markdown). The CLI needs Node.js 22 or later.
  • Sites in a CMS. The docs list 27 content platform connectors. Eighteen are two-way, including Contentful, Sanity, Storyblok, Webflow, Strapi, WordPress and Shopify: they import source content and publish reviewed translations into the target-language slots. Nine are import only, including Prismic, Ghost and HubSpot. The content platforms page says which is which.
  • WordPress. With the Transglot plugin, the docs state that the plugin renders translations on per-language URLs and provides hreflang and per-language sitemaps. The plugin cannot run alongside WPML, Polylang or TranslatePress.
  • Runtime delivery. JavaScript SDKs load published translations from a CDN. The Next.js, SvelteKit and Astro packages render on the server. The React, Vue, Svelte, Angular and Solid packages do not, so they are a poor fit for pages that must be indexed. See runtime SDKs.
  • Checks. Four quality checks run on every string before it is written: placeholders, plural forms, glossary terms and length. A string that fails the first three is repaired once, and refused if it still fails. Approved sentences come from translation memory and are not charged again.

Its limits for this job:

  • For a site built in code, routing, hreflang, canonicals and the switcher remain the work of your framework and templates.
  • HTML is not one of its file formats.
  • The Shopify connector covers products, collections and online store pages. Theme locale files are not on the connector and go through the CLI or API as JSON.
  • One CMS sync reads up to 5,000 entries. Only WordPress, through the plugin, and Contentful send change notifications. Other platforms are synced on request.
  • Connectors, the CLI, the GitHub Action and runtime delivery start on Starter, $19 a month for 300,000 translated words. Free is the browser console only. See pricing.
  • It cannot be self-hosted.

If your text sits in a page builder with no export, a proxy is the better fit.


Common mistakes

  • Redirecting by IP or browser language. Googlebot sees one version.
  • One URL for all languages, switched by cookie or JavaScript.
  • Canonicals pointing to the source language.
  • hreflang without return links, or with en-UK.
  • Translating keywords instead of researching them.
  • Metadata, alt text and structured data left in the source language.
  • Flags as language labels.
  • Launching ten languages at once.
  • No plan for updates.
  • Translating the page and not the checkout, the email or the terms.

Checklist

texttext
Strategy
[ ] Markets and languages chosen from data
[ ] Language targeting or country targeting decided
[ ] Delivery method chosen, trade-offs written down
[ ] URL structure chosen (subdirectory, subdomain or country domain)
Technical SEO
[ ] One URL per language, no content switching by cookie
[ ] Each URL returns translated HTML without JavaScript
[ ] hreflang on every page: self-reference, return links, absolute URLs
[ ] x-default set
[ ] Valid codes (language first, GB not UK)
[ ] Self-referencing canonical in the same language
[ ] html lang on every page, dir="rtl" where needed
[ ] Sitemap covers every locale
[ ] No automatic redirect by IP or Accept-Language on locale URLs
Content
[ ] Titles and meta descriptions written per language
[ ] Keywords researched per language
[ ] Alt text, Open Graph and structured data translated
[ ] Navigation, footer, forms, errors and emails translated
[ ] Images with text replaced or localized
[ ] Legal pages and consent banner translated and reviewed by counsel
Experience
[ ] Visible switcher, labels in their own language, links to the same page
[ ] Choice remembered
[ ] Dates, numbers and currency formatted with Intl
[ ] Address, name and phone fields accept local formats
[ ] Local payment methods enabled
[ ] Layout tested with the longest language and one right to left language
[ ] Fonts cover each script
Operations
[ ] One source of truth for source text
[ ] Source changes mark translations out of date
[ ] Translation triggered by publish or merge
[ ] Native review done for priority pages
[ ] Search Console and analytics segmented by locale
[ ] Scheduled crawl checks hreflang, canonicals and lang

Frequently asked questions

What is website localization?

Website localization is adapting a site for a specific market: the text, and also the URLs, metadata, date and number formats, currency, payment methods, legal pages and layout.

Are subdirectories or subdomains better for a multilingual website?

Google supports both. Subdirectories are easy to set up and low maintenance because everything stays on one host. Subdomains allow separate servers. URL parameters are the one option Google marks as not recommended.

Do I need hreflang if my pages are already in different languages?

Google may find the versions without it and still recommends telling it explicitly. It matters most with regional variants of one language, such as English for the US and the UK.

Should I redirect visitors to their language automatically?

No, not on URLs that already contain a language. Google advises against automatic redirection based on the language you think a user prefers, and against adapting content by IP analysis. Show a visible switcher, remember the choice, and at most suggest another version in a dismissible notice.

Is AI translated content bad for SEO?

Google's policies judge the value of a page to users, not the tool that produced it. Automated translation at scale that gives readers little value falls under its scaled content abuse policy. Accurate, useful translated pages do not.

What does x-default mean in hreflang?

x-default marks the fallback page for users whose language settings match none of your localized versions. It carries no language code. It is commonly set on a language selector page or on the default version of the home page.

How many languages should I launch with?

One. A single language exposes every problem in routing, hreflang, templates and checkout once. Then add languages in batches chosen from your own traffic and sales data.

How this guide was checked

  • URL structure, language detection and locale signals follow Google Search Central's pages on multi-regional and multilingual sites and on locale-adaptive pages. The pros and cons in the URL table are Google's, shortened.
  • hreflang rules, codes, placements and errors follow Google's page on localized versions. Canonicals follow its page on consolidating duplicate URLs.
  • lang, dir, language switching and text expansion follow the W3C Internationalization articles listed below.
  • Intl, unicode-range and logical properties follow MDN. Open Graph and inLanguage follow ogp.me and schema.org.
  • Code samples follow the syntax in those documents. They were not submitted to Search Console or run against a validator. The Intl outputs are the ones printed on MDN and depend on the runtime's time zone.
  • Other tools. Contentful, WPML, Shopify, Next.js, Astro, Smartling and Weglot are described only in terms read on their own sites on 23 November 2026. None was tested or benchmarked. No competitor prices are quoted.
  • Legal. Part 11 is orientation, not legal advice. Only the cookie points were checked, against the European Union's Your Europe page.
  • Not tested. The launch plan was not run on a live site. Ranking and traffic effects were not measured. Bing, Yandex, Baidu and AI answer engines other than Google's are not covered.

Sources

colophon

Who wrote this, and what to read next

wrote this

transglot team

The byline on this post has no profile yet. Author profiles are managed alongside the posts themselves.

Engineering
Best practices
keep reading

Best CMS Translation Tools for Content Teams

Compare the best CMS translation tools for content teams. Explore six options, current pricing, connector limits and a practical pilot before you buy.

September 14, 2026
32 min read
keep reading

How to Translate a React or Next.js App Automatically

The three parts of automatic translation in a React or Next.js app, the tools that cover each part, and a setup that keeps every language current on each push.

November 23, 2026
8 min read
keep reading

The Best AI Tools to Translate a Shopify Store in 2026

Compare four ways to translate a Shopify store with AI, what each one translates, how each is priced, and which fits a store of your size.

November 23, 2026
10 min read
keep reading

Hreflang: The Complete Guide to Tags, Sitemaps, x-default (2026)

Hreflang rules from Google's documentation: tags, HTTP headers, sitemaps, valid codes, x-default, canonicals, a generator script and an audit script.

November 24, 2026
28 min read
keep reading

Subdomain vs Subdirectory vs ccTLD: International URLs (2026)

Subdomain, subdirectory or ccTLD for an international site: what Google documents, what is myth, a decision table and a tested migration plan.

November 24, 2026
27 min read
keep reading

Localization SEO: How to Rank in Every Language (2026)

SEO localization step by step: keyword research per market, the on-page fields to localize, Google's rules for AI translated pages, and a checker script.

November 24, 2026
28 min read
keep reading

International SEO Strategy and Checklist: Complete Guide (2026)

An international SEO strategy in nine steps, a market scoring model with a script, a full audit checklist, a 90-day plan and the KPIs to track per market.

November 24, 2026
34 min read
works with what you already run

41 connectors, already built.

the pipeline this post describes

Try it on your own strings. Free, no card.

Free plan: 100,000 words to start (25,000 at sign-up, 75,000 after a phone check), then 10,000 a month, 15 locales including your source, 3 seats.