🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Syncing a common field between language-specific documents in Sanity

2 replies
Last updated: May 28, 2024
Is it possible to sync a field between two documents? I started with the ambition to use object translations, but realized that all fields expect one are unique to each language. The common field is an array of images that would be nice to keep in sync between the documents.
May 28, 2024, 9:21 AM
I would recommend you hide that field on other language documents, and make only one document’s version of that field the single source of truth.
Then in your queries, query for that field from
that document.
May 28, 2024, 9:54 AM
That makes sense! Maybe a notice field that lets the editor know that the field is available on the base language only.
May 28, 2024, 9:57 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?