DocsIntegrations (experimental)

Integrations overview (experimental)

Experimental connectors that move Sanity, Storyblok and Google Drive content through Generic Translation. Unverified against the live third-party services.

On this page

Experimental. Unverified against the live services. These connectors have never been run against the real Sanity, Storyblok or Google services. Each was written from the vendor’s public API documentation and tested only against in-memory fakes built from those docs. Only the Generic Translation half (extracting content, translating it through the live Generic Translation API, reassembling it) was exercised live. Treat a first run as a trial.

The integrations live in one repository, generic-translation/generic-translation-integrations. Each package is standalone, with its own build and tests.

Package Translates Page
@generic-translation/sanity Sanity documents (strings, Portable Text, nested objects), as a Studio plugin plus a server helper Sanity
@generic-translation/storyblok Storyblok stories (text, markdown, rich text) through the Management API, a CLI and a webhook handler Storyblok
@generic-translation/google-drive Google Docs, Sheets, Slides and plain files in Drive, written back as translated copies Google Drive

All three depend on @generic-translation/core for the message format (ICU with numbered tags, so inline formatting survives translation) and the API client. None is published to npm yet, so install them from a checkout of the repository.

What was verified, and what was not

Exercised against the live Generic Translation API An opt-in test (GENERIC_TRANSLATION_LIVE=1) per package that signs up a throwaway account, translates fixture content and checks that formatting survived.
Tested against fakes only Every call to Sanity, Storyblok or Google. The fakes encode our reading of each vendor’s documentation, not recorded traffic.
Never run The Sanity Studio UI, the Storyblok Visual Editor display of written translations, the Storyblok webhook payload and signature header, real Google OAuth or service-account token exchange, and each CLI with real credentials.

Each page lists the specifics. If you try one and something does not match the real service, the repository is where to report it.

Getting started safely

  1. Use a duplicate or sandbox space, dataset or folder.
  2. Run with --dry-run or the equivalent option first.
  3. Give the Generic Translation key only the permissions it needs; see API keys.
  4. Prefer drafts or copies over overwriting published content.

Something wrong or unclear on this page? Open an issue.

Type to search the documentation.