@sanity/document-internationalization 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.esm.js +2996 -169
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2989 -159
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2996 -169
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -76,10 +76,10 @@ The only required configuration is:
|
|
|
76
76
|
```ts
|
|
77
77
|
// sanity.config.ts
|
|
78
78
|
|
|
79
|
-
import {
|
|
79
|
+
import {defineConfig} from 'sanity'
|
|
80
80
|
import {documentInternationalization} from '@sanity/document-internationalization'
|
|
81
81
|
|
|
82
|
-
export const
|
|
82
|
+
export const defineConfig({
|
|
83
83
|
// ... all other config
|
|
84
84
|
plugins: [
|
|
85
85
|
// ... all other plugins
|
|
@@ -102,10 +102,10 @@ The plugin also supports asynchronously retrieving languages from the dataset, m
|
|
|
102
102
|
```ts
|
|
103
103
|
// sanity.config.ts
|
|
104
104
|
|
|
105
|
-
import {
|
|
105
|
+
import {defineConfig} from 'sanity'
|
|
106
106
|
import {documentInternationalization} from '@sanity/document-internationalization'
|
|
107
107
|
|
|
108
|
-
export const
|
|
108
|
+
export const defineConfig({
|
|
109
109
|
// ... all other config
|
|
110
110
|
plugins: [
|
|
111
111
|
// ... all other plugins
|