Skip to content

Commit

Permalink
feat: enable translation instruction for all documents (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Nov 20, 2024
1 parent 6ede7ff commit 75f5975
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sanity.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ const config = {
supportedLanguages: languages,
schemaTypes: documentsSchemas.map(schema => schema.name),
}),
assist(),
assist({
translate: {
document: {
languageField: 'language',
},
},
}),
],
schema: {
types: schemas,
Expand Down

0 comments on commit 75f5975

Please sign in to comment.