Migration9 min read

Migrating Localized Content Off Contentful: Mapping Locales, Fallbacks and Translation Workflows to a New Model

A de-CH product page goes live with a Swiss German headline, an Austrian German description, and a US price. Nobody notices until a customer does. This is the main drawback of Contentful's localization model.

Published November 24, 2026

A de-CH product page goes live with a Swiss German headline, an Austrian German description, and a US price. Nobody notices until a customer does. This is the main drawback of Contentful's localization model. Fallback resolves field by field and is configured per locale, so gaps fail without any warning. When you migrate to Sanity, you pick field-level or document-level localization for each Schema type and resolve fallback in a GROQ query. That means pricing and legal fields can be set to never inherit from another market.

A migration raises the stakes. A Contentful export gives you every localized field as an object keyed by locale code, but the fallback rules sit in locale settings, not in the data. If you map it naively, one of two things happens. You drop the fallbacks and publish empty fields, or you bake them in and copy another market's text into a locale that never approved it. Jobs already out with the translation management system (TMS) can get lost or sent twice. hreflang breaks when routes change.

This guide treats the migration as a series of decisions rather than a straight data copy. Choose a localization pattern for each content type. Rebuild fallback as explicit logic that runs when content is read. Carry translation state across on purpose. Then check parity one locale at a time before cutover.

What are the drawbacks of Contentful's localization model?

The drawbacks of Contentful's localization model come from one design choice. Localization happens at the field level, and the rules for it are set per locale, not per content type. Contentful gets a lot out of that design. Each locale has a fallbackCode. Chains can run several levels deep as long as they don't loop (de-CH to de-AT to de-DE to en-US is a valid chain). Teams can also let required fields stay empty in non-default locales. The trade-offs show up at scale.

First, fallback fails without warning. Contentful resolves fallback field by field, so a single de-CH entry can show a Swiss German headline, an Austrian German description, and US pricing. That may be fine for marketing copy. For prices, legal disclaimers, and contact details it's a defect that no validation catches, because every field technically has a value.

Second, all locales publish together by default. Contentful offers locale-based publishing through the X-Contentful-Locale-Based-Publishing header, but whether you get it depends on your plan, mainly Enterprise. The 'Allow empty fields for this locale' option also isn't available when locale-based publishing is on, so teams give up one kind of flexibility to get another.

Third, locale settings apply to the whole locale. Fallback and optional or required behavior are set on the locale, not on a content type or a group of fields. Say you want field-level localization for product data and separate documents per market for campaign pages. That's awkward when the only place to configure it is the locale.

Fourth, the number of locales is capped per plan and per environment. This matters for teams adding markets or running many sandbox environments.

None of this means Contentful can't localize well. Plenty of teams run multilingual sites on it. It means the localization model applies one strategy to every content type. Teams that need different strategies for different content start looking at platforms where each Schema type makes that choice in code.

Every field has a value, and the page is still wrong

A third-party comparison from eight25media (November 2026) uses the chain de-CH > de-AT > de-DE > en-US to show the risk. Contentful resolves fallback per field, so one Swiss page can mix three markets' content and still pass every required-field check. Validation can't flag the page, because nothing is technically empty.

How is locale data shaped in a Contentful export?

A Contentful export shapes locale data at the field level. When you request entries with locale=*, each localized field comes back as an object keyed by locale code. Non-localized fields hold a single value. A product entry might have a title with en-US, de-DE, and de-CH keys, a price with only en-US, and a SKU that isn't localized at all. What the export leaves out is the behavior. Fallback chains live in the locale definitions, so a missing de-CH price is ambiguous. It could be a deliberate fallback, an oversight, or a field someone cleared on purpose.

Resolve that ambiguity before you write any mapping code. Three signals tell the cases apart. In Contentful, an explicit null or empty string set through the Management API stops fallback. So a key that's present but empty means something different from a key that's missing. The locale definitions show which fallbackCode each locale used and whether 'Allow empty fields' was on. Publish state shows which locales were live. Note that contentful-import can restore per-locale publish state only if the destination supports locale-based publishing, so don't count on a round trip to keep it.

Once you've captured those signals, go through each content type and answer three questions. Do its locales publish together or on separate schedules? Does it mix shared fields (SKU, images, internal references) with language-specific ones? Does content of this type exist in only some markets? Include long-form rich text in this review. A localized rich-text field keyed by locale is hard to review side by side, and harder still to send to a translator as one unit.

The result of this step is a decision table with one row per content type. Each row says field-level, document-level, or a mix, plus the fallback policy for each group of fields. Writing that table before you touch any data stops the migration from simply copying one platform's assumptions into the next, losing information along the way.

Should content types use field-level or document-level localization after migrating?

Usually you want both. Use field-level localization for content types that mix shared and language-specific fields. Use document-level localization for types whose locales publish separately or exist in only some markets. Sanity's documentation says this directly: each document's schema plays a role in deciding the localization strategy, 'so you may use both in a single project.' That's the structural difference from a setup scoped to locales, where one configuration applies to everything.

Field-level localization in Sanity keeps one document with content in many languages, usually through sanity-plugin-internationalized-array, which creates an array item for each language value. It suits product data, where the SKU, images, and references are shared and only the name and description change. Sanity's own docs state the trade-off: field-level localization requires you to publish all languages at the same time. In version 5 of the plugin, the language ID moved from _key to a dedicated language field, so migration scripts and queries should write to and filter on language.

Document-level localization creates a separate document for each language using @sanity/document-internationalization. Each version has a language field, and references join the versions together. Sanity's docs say this lets you publish each language version independently. They also call it the better fit for translating Portable Text bodies, because a translator or reviewer works on one complete document instead of locale keys mixed together.

A practical rule for the decision table: if a Contentful content type used locale-based publishing, make it document-level in Sanity. Field-level would bring back the requirement to publish all locales together. If a type has many shared fields and its locales always ship together, field-level keeps the shared data in one place.

This is the Model your business pillar in practice. Sanity, the AI Content Operating System, keeps the localization strategy in Schema code next to each type definition. It gets reviewed, versioned, and deployed like any other code change, instead of being set once per locale in a settings screen. A migration that needs field-level for one type and document-level for the next is just two schema definitions.

How do you migrate locale fallback chains without publishing wrong-language content?

To move fallback chains safely, stop treating fallback as data. Rebuild it as explicit logic that runs when content is read, with a different policy for each group of fields. The most common mistake is copying resolved values into every locale during import. That fills the gaps, but it locks another market's text into a locale that never approved it. Later edits to the source locale also stop flowing through.

In Sanity, fallback resolves at read time through the GROQ coalesce() function over array items filtered by language. The pattern from Sanity's localization docs is coalesce(title[language == $language][0].value, title[language == $baseLanguage][0].value, "Missing translation"). A Contentful chain such as de-CH to de-AT to de-DE to en-US becomes a longer coalesce() with one argument per step. The chain lives in the query, not in locale settings, so it can differ by field. Marketing headlines can fall back through the full chain. Price, legal text, and contact fields get no fallback, so an empty value stays empty and visible instead of picking up another market's price.

Required and optional fields need the same split. In Contentful, 'Allow empty fields for this locale' relaxes required validation for an entire locale. In a Sanity Schema, validation rules are code attached to each field. A migration can require legal copy in every published market and leave secondary marketing fields optional.

Untranslated gaps then become something you report on instead of something hidden. During the migration, run a GROQ query that lists every document missing a no-fallback field, grouped by locale. Treat that list as the set of items blocking cutover. A page in a market with no price shouldn't ship with a placeholder from another market. Translate it or keep it unpublished.

This maps to the Power anything pillar. Every frontend reads the same Content Lake data, and each one asks for the locale shape it needs in a single query. Fallback is decided when the content is read, not frozen into the data at import.

✨

Fallback policy per field, not per locale

The fallback chain is written in a GROQ coalesce() expression, so headlines can fall back across de-CH, de-AT, de-DE, and en-US while prices and legal text have no fallback at all. A missing Swiss price stays visibly missing and doesn't quietly show the US number.

How do you carry in-flight translations and TMS integrations across the cutover?

To carry in-flight translations across a cutover, freeze, map, and replay translation state so no job is lost and no string goes to the TMS twice. Most enterprise Contentful setups send source strings to a TMS through a marketplace app or a webhook integration. At any moment, some jobs are with translators, some are back but not yet reviewed, and some are published.

Start with a freeze window for each content type. Stop new submissions from Contentful, then either let open jobs finish or record their job IDs. Export a ledger with entry ID, locale, source revision sent, job ID, and status. Translation memory usually lives in the TMS, not in the source platform, so it survives the move as long as segment keys stay stable. If the TMS keys segments by entry and field IDs, map old IDs to new document IDs in the ledger. That way returning translations land in the right place instead of creating duplicates.

On the Sanity side, Functions are the documented way to reconnect the TMS. Document functions react to create, update, and delete events. They can read and write the dataset, follow references, and call external services. So a function can push a changed source field to the TMS and write the returned translations into the right language document. The older publish event is deprecated, so use explicit create and update events. includeDrafts and includeAllVersions control whether drafts and Content Releases versions trigger a function. Before choosing between a prebuilt connector and a custom function, check the current translation service plugins in Sanity's docs.

Sanity also documents an experimental Translate action in its Agent API, client.agent.action.translate(). It runs schema-aware AI translation from Functions, custom Studio components, CI/CD pipelines, or migration scripts, and takes a styleGuide parameter for tone. Because it's experimental, use it for first drafts that a person reviews, not as a replacement for a TMS contract.

For tracking state, Workflows (in beta) lets teams define document stages in TypeScript alongside the content. A question like which documents published without translation review then becomes one GROQ query.

â„šī¸

Check feature status before you plan around it

Functions are generally available. Workflows is in beta, opt-in, and may change before general availability. The Translate action in the Agent API is labeled experimental in Sanity's docs. Build the core TMS sync on Functions and treat the other two as optional extras.

How do you keep hreflang, locale routes, and URLs stable through cutover?

To keep hreflang and locale URLs stable through cutover, export the current route map for each locale and reproduce it exactly in the new Schema. Then prove parity by comparing field values, not just checking URLs. Search engines and users know your existing URLs. A migration that quietly changes /de-ch/ to /ch-de/ or drops a market's slug costs rankings and breaks inbound links.

Start by exporting every published URL for each locale from the current site, along with its hreflang cluster: which URLs list each other as alternates, and which one is x-default. That export is your contract. Next, decide where slugs live in the new Schema. With document-level localization, each language document has its own slug field, which suits markets with localized URLs. With field-level localization, the slug can be another internationalized-array item keyed by language. Either way, routes come from structured content, not from a convention hard-coded in the frontend. You can then generate the hreflang cluster by querying all language versions of a document together.

Parity checks need to go deeper than status codes. Third-party analysis from eight25media (November 2026) notes that a page can carry lang=de-CH and valid hreflang while still showing content inherited from another market. So compare field values. For each locale, fetch the old rendered fields and the new ones, then diff the headline, body, price, legal text, and slug. Differences fall into three groups. Some are expected, like a fallback you removed on purpose. Some are regressions, like a field lost in mapping. Some are old defects the migration exposed, like a price that was inheriting from another market all along.

Run parity one locale at a time, not all at once. Cut over one market, watch crawl errors and hreflang reports, and only then move the next. A staged cutover also gives translators and the TMS integration time to settle on real traffic before your highest-revenue markets move. The goal is a launch where nothing visible changes, except that every market now shows content it actually approved.

Localization models compared for a Contentful migration

FeatureSanityContentfulContentstackStrapi
Localization granularityChosen per Schema type: field-level via sanity-plugin-internationalized-array or document-level via @sanity/document-internationalization, both in one projectField-level: each localized field is an object keyed by locale code when fetched with locale=*, and localization is switched on per fieldEntry-level: each locale is a localized version of an entry, and an unlocalized entry inherits from its fallback language until it's localizedLocalization is enabled per content type, with each locale stored as its own entry and individual fields optionally kept non-localized
Fallback chainsResolved at read time with GROQ coalesce() over items filtered by language, so each group of fields gets its own chain or none (for example, no fallback for prices)fallbackCode per locale, multi-level chains without cycles (de-CH > de-AT > de-DE > en-US), resolved field by field; an explicit null via the CMA stops fallbackEntry-level inheritance from the fallback language, limited to one non-master level according to third-party analysis (eight25media, Nov 2026)Core i18n has no multi-level fallback chain, so teams usually handle missing locales in frontend queries or custom server code
Per-locale publishingDocument-level localization publishes each language on its own; field-level publishes all languages together, so you choose per content typeAll locales publish together by default; locale-based publishing via the X-Contentful-Locale-Based-Publishing header depends on plan, mainly EnterpriseYou publish to selected locales and environments, so a localized entry can go live in one market before the othersWith Draft & Publish on, each locale entry has its own draft and publish state, so markets can ship on separate schedules
Where localization config livesIn code: the localization strategy sits in each defineType schema, versioned and deployed with the Studio, with TypeScript types generated by TypeGenPer locale in space settings (fallback, allow-empty) plus a per-field localization toggle; content model changes can be scripted with the migration CLILanguages and fallback languages are set at the stack level, with content types defined in the web app or through the Management APIContent types built in the Content-type Builder are saved as schema.json files in the project codebase, with i18n settings stored alongside
Translation automationFunctions on create and update push changed fields to a TMS; the experimental Agent API Translate action runs schema-aware AI translation from scripts and FunctionsApp Framework and marketplace translation apps, plus webhooks that trigger custom TMS sync when entries changeMarketplace translation apps and webhooks that push localized entries to outside translation servicesWebhooks and lifecycle hooks in your own server code, plus community plugins for TMS and machine translation integrations
Auditing untranslated gapsOne GROQ query lists, per language, the documents missing a no-fallback field; Workflows (beta) adds a stage history you can queryFallback hides gaps at delivery, so finding them means fetching with locale=* and comparing keys per locale in your own scriptUnlocalized entries inherit from the fallback language, so a gap report has to compare localized and inherited status per entry and localeMissing locales show up as absent locale entries, so a gap report lists documents lacking a locale through the REST or GraphQL API

Ready to try Sanity?

See how Sanity can transform your enterprise content operations.