Skip to content

Commit 1e30572

Browse files
fix(typegen): 🤖 ✨ (#868)
Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
1 parent ddb82aa commit 1e30572

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

‎plugins/@sanity/document-internationalization/docs/02-importing-and-creating-documents.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ Once created as Sanity documents, they should look like this with an additional
4545
"_id": "89f8e852-2146-429b-83a9-4895cca84cb7",
4646
"_type": "translation.metadata",
4747
"translations": [
48-
{
49-
"_key": "kjjNvZHK8Y2QpTEf3K5jc",
50-
"_type": "internationalizedArrayReferenceValue",
51-
"language": "en",
52-
"value": {
53-
"_type": "reference",
54-
"_ref": "9b4c2d23-0434-4a2d-be39-84674060d3de"
55-
}
56-
},
57-
{
58-
"_key": "9Hw3I5BNXZ72mCfJW6Pq1",
59-
"_type": "internationalizedArrayReferenceValue",
60-
"language": "no",
61-
"value": {
62-
"_type": "reference",
63-
"_ref": "0fcdc874-84f3-4981-9721-cb4c125011b8"
64-
}
48+
{
49+
"_key": "kjjNvZHK8Y2QpTEf3K5jc",
50+
"_type": "internationalizedArrayReferenceValue",
51+
"language": "en",
52+
"value": {
53+
"_type": "reference",
54+
"_ref": "9b4c2d23-0434-4a2d-be39-84674060d3de"
55+
}
56+
},
57+
{
58+
"_key": "9Hw3I5BNXZ72mCfJW6Pq1",
59+
"_type": "internationalizedArrayReferenceValue",
60+
"language": "no",
61+
"value": {
62+
"_type": "reference",
63+
"_ref": "0fcdc874-84f3-4981-9721-cb4c125011b8"
6564
}
65+
}
6666
]
6767
}
6868
]

‎plugins/@sanity/document-internationalization/docs/04-importing-plugin-components.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export function MyComponent({_id, _type}) {
3838

3939
if (!schemaType) return null
4040

41-
return <DocumentInternationalizationMenu documentId={getPublishedId(_id)} schemaType={schemaType} />
41+
return (
42+
<DocumentInternationalizationMenu documentId={getPublishedId(_id)} schemaType={schemaType} />
43+
)
4244
}
4345
```

0 commit comments

Comments
 (0)