How to Set Up and Use the Sanity CMS Integration

Overview

Smartcat connects directly to Sanity CMS as a hosted connection — there is no plugin to install into Sanity Studio. You set up the connection from Smartcat's own integration settings (an API token plus a locale mapping), and Smartcat's backend reads and writes your content through Sanity's Content Lake API.

The connector supports both of Sanity's localization models, and detects which one applies automatically, per document — you do not choose a mode or install a separate plugin for each:

  • Document-level translation — a document has a top-level language field (the pattern used by Sanity's own @sanity/document-internationalization). Smartcat treats each language as a separate, linked sibling document.

  • Field-level translation — a document holds locale-keyed values inside the same document (the pattern used by Sanity's sanity-plugin-internationalized-array). Smartcat writes translated values back into the same document, alongside the source.

A single document is handled as one mode or the other, based on whether it has that top-level language field — mixing both approaches within one document is not supported.

⚠️ Setup today is arranged with your Smartcat account team, not fully self-serve from the integrations page. Talk to your FDE or account manager to get the connection configured.

When to use it

  • You manage website or product content in Sanity and need to translate it into one or more target languages

  • Your Studio schema already follows one of Sanity's two standard localization patterns (a top-level language field, or locale-keyed field arrays)

  • You want translated content to land back inside Sanity, tracked alongside your source content, instead of exporting it to another tool

  • You use Sanity Content Releases and want to translate a release before it goes live, so the source content and its translations are published together

How to use it

Step 1 — Set up the connection

  1. Contact your Smartcat account team to arrange the Sanity connection.

  2. Provide a Sanity API token with Editor-level write access.

  3. Set up the locale mapping — pair each Sanity locale you use with the matching Smartcat locale.

  4. If your Studio uses a non-default field name for language, let your account team know so it can be configured (Smartcat defaults to a field named language).

💡 Test the connection against a sandbox Sanity project/dataset before pointing it at production.

Step 2 — Make sure your schema is set up for translation

Smartcat doesn't decide what's translatable — that's controlled by your Sanity schema, same as with Sanity's own tooling:

  • For document-level translation, your schema needs a top-level language field (as used by @sanity/document-internationalization).

  • For field-level translation, your schema needs locale-keyed field arrays (as used by sanity-plugin-internationalized-array).

Smartcat detects which pattern a given document uses automatically when it pulls content — there's no setting to flip per project.

Step 3 — Translate and sync content

Once the connection is live, your Sanity documents are translated through Smartcat the same way other CMS integrations work: content is pulled into a Smartcat project by document type, translated, and written back to Sanity.

  • For document-level content, Smartcat creates or updates the language-specific sibling document and records it in the document's translation metadata.

  • For field-level content, Smartcat writes translated values back into the locale-keyed fields of the same document.

Open each document in Sanity Studio afterward to see the result in place.


Translate a Content Release

If you use Content Releases in Sanity, Smartcat can translate the content in a release before the release goes live. Without a Content Release filter, Smartcat shows only published content.

⚠️Content Releases work only for documents translated field by field, where all languages sit inside one document. If you keep each language as a separate document, Smartcat won’t import those documents from a release.

Step 1 — Filter and translate a release

  1. In Smartcat, go to the connected Sanity instance in Integration Hub and open the dataset folder.

  2. Click the filter icon next to the search box in the upper-right corner to open Filters.

    image

  3. Click Add new filter, open Select property, and choose Content Release.
    image

  4. Select a release from Sanity in the picker and click Apply. Smartcat lists only the documents in that release, whatever their type, and tags each one with the release name.
    image

  5. Select the documents you want to translate and click Create translation.
    image

  6. In Project settings, enter a Project name, choose the Source language, and select the Target languages. Click Integration-specific settings, review the options, and click Create project.

image

Smartcat imports the release version of each selected document into the new project, which you work with like any other project.

image

Each document now appears in the project, in each of the three languages.

image

Step 2 — Automate imports for a Content Release

Releases change over time. An automation imports new and updated content from the release into your project, so you do not need to repeat Step 1.

  1. In the filtered view, click the three-dot menu in the upper-right corner and select Create new under Automation.
    image

  2. In Import policy, set New and updated content goes into... to Existing project and select the project you created.

    image

  3. Click Next. In Folder & Filters, enter an Automation name. The Content Release filter is already filled in, and Smartcat shows how many files match it.
    image

  4. Select how often Smartcat checks for changes under Automation intervals.

  5. Click Project settings, confirm the languages, and finish creating the automation.

image

Smartcat imports content you add to the release later into the project, at the interval you selected.

Step 3 — Send release translations to Sanity

When translations are ready, send them back to Sanity.

📌 If auto-export is on for a language on your connection, Smartcat sends those translations on its own. Select Auto export settings in the Automation menu to manage it.

  1. Go to Current translations in the sidebar. Smartcat tags each document with its release name.

  2. Select the documents you want to send and click Send to Sanity.

    image

  3. In Send translations to Sanity, choose a Completion level (the default is Draft, which includes all unconfirmed edits) and the Target languages, then click Send translations.

image

Smartcat adds the translations to the same Content Release in Sanity, next to the English content. Release documents have no publish option, so the published version stays unchanged until you run the release in Sanity. Then the source content and all translations go live at the same time.

image


Requirements and limitations

  • There is no customer-installed Smartcat plugin for Sanity Studio — the connection is hosted and configured from the Smartcat side.

  • Your Studio schema must already implement one of the two supported localization patterns (top-level language field, or locale-keyed field arrays); Smartcat does not define your schema for you.

  • A document is translated as document-level or field-level, never both at once — mode is auto-detected from the document's own structure.

  • Setup currently goes through your Smartcat account team rather than a self-serve flow

  • Content Releases require a Sanity enterprise plan

FAQs

Do I need to install anything in Sanity Studio?

There is no separate Smartcat plugin. Your Studio needs to already use one of Sanity's two standard localization patterns — Smartcat connects to your existing setup rather than adding Studio UI.

Can I use both field-level and document-level translation?

Yes, across different documents in the same project — Smartcat detects the right mode per document automatically. A single document, however, is handled as one mode only.

How do I choose target languages?

Target languages are set up as part of the locale mapping when the connection is configured, not chosen inside Sanity Studio.

Does Smartcat decide what gets translated in Sanity, or do I choose?

You choose, via your Sanity schema and which content you add to a Smartcat project — the same as any other CMS integration. Which fields or documents are translatable at all is defined by your schema and which localization pattern it uses.


Want to learn more?

See how Smartcat can transform your localization workflow.

Book a demo

Still need help?

Our support team responds within one business day.

Open a support case