Skip to main content

Overview

The Lilt Sanity Connector streamlines the localization of your Sanity CMS content. By integrating directly with your Sanity Studio, you can request translations for your documents and receive translated content back without leaving your CMS. The connector is a Sanity Studio v3 plugin.

Installation

To get started, you need to install the Lilt plugin for Sanity.
npm install sanity-plugin-lilt

Configuration

After installing the plugin, you need to add it to your sanity.config.ts (or .js) file.
import {defineConfig} from 'sanity'
import {liltPlugin} from 'sanity-plugin-lilt'

export default defineConfig({
  //...
  plugins: [liltPlugin({})],
})
You will also need to configure the connector with your Lilt Connector API token. Contact the Lilt support team to obtain your token. Once you have your token, enter it in the Lilt Connector settings within your Sanity Studio.

How it works

Once the connector is installed and configured, you will see a new “Lilt” tab in your Sanity Studio. From there, you can: Lilt tab in Sanity
  • Create new translation jobs: Select documents and target languages for translation.
    1. Click the “Translate” button in the Lilt tab.
    2. Select “Instant” or “Verified” translation workflow.
    3. Select the Source Language
    4. Select one or more Target Languages
    5. Select the resources you want to translate.
    6. Submit for translation.
  • Track job status: Monitor the progress of your translation jobs.
  • Receive translated content: Translated content is automatically delivered back to your Sanity CMS as new document versions. Once the translation is complete, click the Import button to import the translated content back into Sanity.

Known Limitations

  • The connector may not support all Sanity content objects, especially complex or nested structures. We are actively working on improving this.
  • Bulk export/import functionality is not yet available.