@sanity/document-internationalization 0.3.2 → 0.3.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.3.4
4
+ * Updated docs regarding V3 studio
5
+
6
+ ## v0.3.3
7
+ * Fixes [#59](https://github.com/sanity-io/document-internationalization/issues/59) - Missing `_weak` field in base reference
8
+
3
9
  ## v0.1.7
4
10
  * For base I18n documents the default "Delete" action will now be replaced with the Delete (incl. translations)" action. The default "Delete" action does not make sense for base documents in any scenario as it results in broken references.
5
11
 
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Document Internationalization Plugin for Sanity.io
2
2
 
3
+ > **NOTE**
4
+ >
5
+ > This is the **Sanity Studio V2 version** of Document Internationalization Plugin.
6
+ >
7
+ > For the V3 version, please refer to the [v3-branch](https://github.com/sanity-io/document-internationalization/tree/v3).
8
+
3
9
  [![npm version](https://img.shields.io/npm/v/@sanity/document-internationalization.svg?style=flat)](https://www.npmjs.com/package/@sanity/document-internationalization)
4
10
 
5
11
  ![Document Level Internationalization UI](docs/img/document-level-translation.gif)
@@ -62,7 +68,8 @@ The plugin is now installed, but you will need to complete the following steps t
62
68
  4. [GraphQL support](docs/graphql-intl-doc.md)
63
69
  5. [Advanced languages](docs/advanced-languages.md)
64
70
  6. [Usage with custom publish action](docs/usage-with-custom-publish.md)
65
- 7. [GROQ query examples](/docs/groq-query-examples.md)
71
+ 7. [If you don't see the plugin document actions](docs/usage-with-custom-publish.md#add-additional-actions)
72
+ 8. [GROQ query examples](/docs/groq-query-examples.md)
66
73
 
67
74
  ## Migrating from sanity-plugin-intl-input
68
75
 
@@ -1902,7 +1902,7 @@ function createSanityReference(id) {
1902
1902
  var weak = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1903
1903
  return _objectSpread$2({
1904
1904
  _type: 'reference',
1905
- _ref: id
1905
+ _ref: id.replace("drafts.", "")
1906
1906
  }, weak === true ? {
1907
1907
  _weak: true
1908
1908
  } : {});