Open
Description
I'm trying to combine this plugin with the setup for singleton document described here. When I do this the translation tab disappears across all documents. I'm using document level translations.
Assuming the settings document needs to be translated too, how do I rewrite this to make it work?
import S from "@sanity/desk-tool/structure-builder";
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Site settings')
.child(
S.document()
.schemaType('siteSettings')
.documentId('siteSettings')
),
// Add a visual divider (optional)
S.divider(),
// List out the rest of the document types, but filter out the config type
...S.documentTypeListItems()
.filter(listItem => !['siteSettings'].includes(listItem.getId()))
])
Metadata
Assignees
Labels
No labels