Skip to content

Commit

Permalink
feat: enable Sanity AI Assist for translation (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Nov 11, 2024
1 parent 4e933e2 commit 43bb6ef
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"sanity"
],
"dependencies": {
"@sanity/assist": "^3.0.8",
"@sanity/document-internationalization": "^3.0.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
2 changes: 2 additions & 0 deletions sanity.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { documentInternationalization } from '@sanity/document-internationalization';
import { defineConfig } from 'sanity';
import { structureTool } from 'sanity/structure';
import { assist } from '@sanity/assist';
import deskStructure from './deskStructure';
import schemas, { documentsSchemas } from './schemas/schema';
import { uniqueDocuments } from './uniqueDocuments';
Expand All @@ -16,6 +17,7 @@ const config = {
supportedLanguages: languages,
schemaTypes: documentsSchemas.map(schema => schema.name),
}),
assist(),
],
schema: {
types: schemas,
Expand Down
30 changes: 30 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,21 @@
resolved "https://registry.yarnpkg.com/@sanity/asset-utils/-/asset-utils-1.3.0.tgz#6460cd993a2c24368a6308028f3bc57df91f131e"
integrity sha512-uyIOtGA4Duf+68I3BSbYHY5P+WGftn3QtNJD2Pn7h9WPGYsSrWViIPebE9yRN8N0NHhYj+hDQXaMpVdjG7r+zA==

"@sanity/assist@^3.0.8":
version "3.0.8"
resolved "https://registry.yarnpkg.com/@sanity/assist/-/assist-3.0.8.tgz#c212c1a00739ed49ba3be807d5a9c63f52a057fe"
integrity sha512-5M5lBBGuhuHd0gFpqKsvcVmv6K1JT0SGvokug9qPQDGyiYDjMzby6qPv2TGxXjQ1JSg4pdxv5u+lYlg8h+jzig==
dependencies:
"@sanity/icons" "^2.11.7"
"@sanity/incompatible-plugin" "^1.0.4"
"@sanity/ui" "^2.1.0"
date-fns "^3.6.0"
lodash "^4.17.21"
lodash-es "^4.17.21"
react-fast-compare "^3.2.2"
rxjs "^7.8.1"
rxjs-exhaustmap-with-trailing "^2.1.1"

"@sanity/bifur-client@^0.4.1":
version "0.4.1"
resolved "https://registry.yarnpkg.com/@sanity/bifur-client/-/bifur-client-0.4.1.tgz#f05f3659f67233d572c98c99f887d25b408bc2c4"
Expand Down Expand Up @@ -3499,6 +3514,11 @@ date-fns@^2.26.1:
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"
integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==

date-fns@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.6.0.tgz#f20ca4fe94f8b754951b24240676e8618c0206bf"
integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==

[email protected]:
version "1.0.1"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-1.0.1.tgz#bb7d086438debe4182a485fb3df3fbfb99d6153c"
Expand Down Expand Up @@ -5013,6 +5033,11 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"

lodash-es@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==

lodash.debounce@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
Expand Down Expand Up @@ -6087,6 +6112,11 @@ react-fast-compare@^3.2.0:
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.1.tgz#53933d9e14f364281d6cba24bfed7a4afb808b5f"
integrity sha512-xTYf9zFim2pEif/Fw16dBiXpe0hoy5PxcD8+OwBnTtNLfIm3g6WxhKNurY+6OmdH1u6Ta/W/Vl6vjbYP1MFnDg==

react-fast-compare@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.2.tgz#929a97a532304ce9fee4bcae44234f1ce2c21d49"
integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==

react-focus-lock@^2.8.1:
version "2.9.4"
resolved "https://registry.yarnpkg.com/react-focus-lock/-/react-focus-lock-2.9.4.tgz#4753f6dcd167c39050c9d84f9c63c71b3ff8462e"
Expand Down

0 comments on commit 43bb6ef

Please sign in to comment.