Function Scenario Guide

How to Translate Shopify Sitemap

How to translate and localize your Shopify sitemap so every translated URL, hreflang alternate, and localized page is discoverable by search engines.

AudienceShopify merchants and developers managing multilingual storefronts
TopicSitemap
Year2026
Summary

A step-by-step guide to localizing your Shopify sitemap — URL structure, hreflang annotations, and crawl efficiency so every translated page gets indexed.

If a translated page URL is not discoverable in a sitemap or crawl path, it can sit unindexed no matter how good the translation is.

Listing localized URLs is only half the job — hreflang annotations tell Google which URL serves which language and prevent the pages from being treated as duplicates.

Deleted or renamed translated pages left in the sitemap send crawlers to 404s and dilute the budget your real pages need.

Why it matters

Why this translation scenario deserves its own workflow

Start by explaining why this Shopify surface matters before moving into scope, errors, and rollout method.

This scenario is not just about translating a few strings. It usually shapes whether shoppers understand the page, trust the storefront, and continue far enough to convert.

A step-by-step guide to localizing your Shopify sitemap — URL structure, hreflang annotations, and crawl efficiency so every translated page gets indexed.

How to translate and localize your Shopify sitemap so every translated URL, hreflang alternate, and localized page is discoverable by search engines.

A sitemap is how search engines discover your localized URLs

If a translated page URL is not discoverable in a sitemap or crawl path, it can sit unindexed no matter how good the translation is.

Sitemaps and hreflang work together

Listing localized URLs is only half the job — hreflang annotations tell Google which URL serves which language and prevent the pages from being treated as duplicates.

Stale localized URLs waste crawl budget

Deleted or renamed translated pages left in the sitemap send crawlers to 404s and dilute the budget your real pages need.

Translation scope

What should you translate first in this scenario?

Prioritize the fields and surfaces that customers actually see, that shape conversion, and that influence SEO.

The translation scope should follow the customer journey, not just the Shopify field list. Start with the surfaces that affect understanding and conversion first, then expand into supporting modules.

Critical layer: Localized URL slugs per page, hreflang alternate annotations, and Language subdirectory/subdomain structure.

Important layer: x-default reference page and Locale-aware canonical tags.

CriticalPriority: High
  • Localized URL slugs per page
  • hreflang alternate annotations
  • Language subdirectory/subdomain structure
ImportantPriority: Medium
  • x-default reference page
  • Locale-aware canonical tags
OptionalPriority: Lower
  • Image and asset URLs
  • Localized blog/sitemap section files
Mistakes

What goes wrong most often here?

Focus on the issues that break UX, hurt SEO, or reduce conversion, not just language quality in isolation.

These mistakes matter because they do more than create awkward language. They make the experience feel unreliable, disconnect the workflow, or quietly reduce SEO and conversion.

Translating pages without listing them in the sitemapHigh

Wrong example: Publishing translated pages but leaving only source-language URLs in the sitemap.

Better approach: Ensure the sitemap includes every localized URL and its hreflang alternates.

Business impact: Translated pages stay unindexed and never rank.

Missing or broken hreflang tagsHigh

Wrong example: Listing /de and /fr URLs with no hreflang linking them, so Google treats them as duplicate content.

Better approach: Add bidirectional hreflang annotations plus an x-default for the fallback market.

Business impact: Google picks one version and ignores the others.

Canonical tags pointing at the source pageHigh

Wrong example: A German page whose canonical tag points to the English /en version.

Better approach: Set each localized page's canonical to its own localized URL.

Business impact: The localized page is treated as a duplicate and deindexed.

Leaving stale URLs in the sitemapMedium

Wrong example: Keeping deleted product URLs in the sitemap after they were translated then removed.

Better approach: Prune dead URLs on every regeneration so the sitemap only lists live pages.

Business impact: Wasted crawl budget and lower indexing priority for real pages.

Workflow options

Which setup fits this scenario best?

Help buyers decide between manual handling, translation apps, and custom development.

There is no single best setup for every team. The right choice is the one your team can maintain consistently as content changes and more markets are added.

Manual translation (in-house or freelancer) / Shopify translation app (Translate & Adapt / Ciwi) / Custom build with the Shopify API

Manual translation (in-house or freelancer)

Advantage
  • Full control over which URLs to include
  • No tooling cost for small stores
  • Simple for a single extra language
Limitation
  • Tedious to maintain as the catalog grows
  • Easy to forget new translated URLs
  • hreflang mistakes are common when done by hand

Shopify translation app (Translate & Adapt / Ciwi)

Advantage
  • Auto-generates localized URLs for every translated page
  • Keeps hreflang alternates in sync automatically
  • Updates the sitemap as translations are added
Limitation
  • Recurring subscription cost
  • Less control over edge-case URL rules
  • Depends on the app's sitemap integration

Custom build with the Shopify API

Advantage
  • Full control over sitemap and robots configuration
  • Custom hreflang logic per market
  • Integrates with your hosting and CDN layer
Limitation
  • Requires development resources
  • Ongoing maintenance as pages change
  • Slower to launch than an app
Checklist

What should you verify before launch?

Turn the rollout into a practical execution checklist so QA is easier and nothing important gets missed.

If you are ready to publish this scenario, treat the steps below as one release checklist instead of a few disconnected settings.

  • Confirm your localized URL structure first (subdirectory like /de or subdomain like de.example.com) — the sitemap reflects it.
  • List every translated page and its corresponding localized URL in one place.
  • Add hreflang annotations pointing each URL to its language alternates, plus an x-default fallback.
  • Ensure each localized page's canonical tag points to itself, not the source page.
  • Generate or update the sitemap to include every localized URL that should be indexed.
  • Remove deleted or renamed translated URLs so crawlers don't hit 404s.
  • Submit the sitemap in Google Search Console and check the hreflang report for errors.
  • Re-generate the sitemap whenever new pages or languages are added.
Ciwi

What Ciwi helps automate here

Translate product capabilities into workflow outcomes users can actually understand and act on.

If you want this scenario to become an ongoing workflow instead of a one-time cleanup, these Ciwi capabilities are the parts that usually help most.

  • Auto-generate localized URLs for every page
  • hreflang alternates kept in sync automatically
  • Sitemap updates as you add translations
  • Prune stale URLs before they waste crawl budget
Next topics

What should you read next?

These related topics help build a more complete Shopify localization workflow after this scenario.

Once this page is handled, the next step is usually a cluster of adjacent Shopify surfaces. These related topics help turn one translated page into a fuller multilingual workflow.

How to Translate Shopify URLs & Slugs

Lock in the URL structure your sitemap will list.

How to Translate Shopify Meta Titles & Descriptions

Pair discoverable URLs with localized metadata.

How to Translate Shopify Structured Data (Schema)

Keep schema consistent on the pages your sitemap exposes.

FAQ

Frequently asked questions

Cover the most common execution questions users ask when working through this scenario.

Do I need to translate the sitemap file itself?

No — the sitemap file stays machine-readable. What you localize are the URLs inside it and the hreflang annotations that link language alternates together.

Does Shopify generate localized sitemaps automatically?

Shopify generates a sitemap.xml for your store, but localized URL and hreflang handling depends on your translation setup. A translation app or custom code is usually needed to list every localized URL with correct hreflang.

What is the x-default hreflang value for?

x-default points to the page shown when no language matches — typically your English or global version. It helps Google route users who fall outside your target markets.

Next step

Ready to operationalize this workflow?

Start with the Shopify surfaces that affect UX and conversion most, then scale the workflow into more markets and content types.