@sanity/document-internationalization 3.1.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 CHANGED
@@ -76,10 +76,10 @@ The only required configuration is:
76
76
  ```ts
77
77
  // sanity.config.ts
78
78
 
79
- import {createConfig} from 'sanity'
79
+ import {defineConfig} from 'sanity'
80
80
  import {documentInternationalization} from '@sanity/document-internationalization'
81
81
 
82
- export const createConfig({
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 {createConfig} from 'sanity'
105
+ import {defineConfig} from 'sanity'
106
106
  import {documentInternationalization} from '@sanity/document-internationalization'
107
107
 
108
- export const createConfig({
108
+ export const defineConfig({
109
109
  // ... all other config
110
110
  plugins: [
111
111
  // ... all other plugins
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var resources = {
3
+ "action.duplicate.label": "Duplicate with translations",
4
+ "action.duplicate.disabled.missing-metadata": "The document cannot be duplicated because the metadata document is missing",
5
+ "action.duplicate.disabled.multiple-metadata": "The document cannot be duplicated because there are multiple metadata documents"
6
+ };
7
+ exports.default = resources;
8
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sources":["../../src/i18n/resources.ts"],"sourcesContent":["export default {\n 'action.duplicate.label': 'Duplicate with translations',\n 'action.duplicate.disabled.missing-metadata':\n 'The document cannot be duplicated because the metadata document is missing',\n 'action.duplicate.disabled.multiple-metadata':\n 'The document cannot be duplicated because there are multiple metadata documents',\n}\n"],"names":[],"mappings":";AAAA,IAAe,YAAA;AAAA,EACb,0BAA0B;AAAA,EAC1B,8CACE;AAAA,EACF,+CACE;AACJ;;"}
@@ -0,0 +1,9 @@
1
+ var resources = {
2
+ "action.duplicate.label": "Duplicate with translations",
3
+ "action.duplicate.disabled.missing-metadata": "The document cannot be duplicated because the metadata document is missing",
4
+ "action.duplicate.disabled.multiple-metadata": "The document cannot be duplicated because there are multiple metadata documents"
5
+ };
6
+ export {
7
+ resources as default
8
+ };
9
+ //# sourceMappingURL=resources.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.mjs","sources":["../../src/i18n/resources.ts"],"sourcesContent":["export default {\n 'action.duplicate.label': 'Duplicate with translations',\n 'action.duplicate.disabled.missing-metadata':\n 'The document cannot be duplicated because the metadata document is missing',\n 'action.duplicate.disabled.multiple-metadata':\n 'The document cannot be duplicated because there are multiple metadata documents',\n}\n"],"names":[],"mappings":"AAAA,IAAe,YAAA;AAAA,EACb,0BAA0B;AAAA,EAC1B,8CACE;AAAA,EACF,+CACE;AACJ;"}
@@ -0,0 +1,9 @@
1
+ var resources = {
2
+ "action.duplicate.label": "Duplicate with translations",
3
+ "action.duplicate.disabled.missing-metadata": "The document cannot be duplicated because the metadata document is missing",
4
+ "action.duplicate.disabled.multiple-metadata": "The document cannot be duplicated because there are multiple metadata documents"
5
+ };
6
+ export {
7
+ resources as default
8
+ };
9
+ //# sourceMappingURL=resources.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.esm.js","sources":["../../src/i18n/resources.ts"],"sourcesContent":["export default {\n 'action.duplicate.label': 'Duplicate with translations',\n 'action.duplicate.disabled.missing-metadata':\n 'The document cannot be duplicated because the metadata document is missing',\n 'action.duplicate.disabled.multiple-metadata':\n 'The document cannot be duplicated because there are multiple metadata documents',\n}\n"],"names":[],"mappings":"AAAA,IAAe,YAAA;AAAA,EACb,0BAA0B;AAAA,EAC1B,8CACE;AAAA,EACF,+CACE;AACJ;"}
package/dist/index.d.mts CHANGED
@@ -29,6 +29,8 @@ export declare interface DocumentInternationalizationSchemaOpts {
29
29
  }
30
30
  }
31
31
 
32
+ export declare const DuplicateWithTranslationsAction: DocumentActionComponent
33
+
32
34
  export declare type Language = {
33
35
  id: Intl.UnicodeBCP47LocaleIdentifier
34
36
  title: string
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ export declare interface DocumentInternationalizationSchemaOpts {
29
29
  }
30
30
  }
31
31
 
32
+ export declare const DuplicateWithTranslationsAction: DocumentActionComponent
33
+
32
34
  export declare type Language = {
33
35
  id: Intl.UnicodeBCP47LocaleIdentifier
34
36
  title: string