@sanity/document-internationalization 0.3.6 → 0.3.8

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/LICENSE CHANGED
@@ -1,7 +1,10 @@
1
+ MIT License
2
+
1
3
  Copyright © 2020 Liam Martens
4
+ Copyright © 2022 Sanity.io
2
5
 
3
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
7
 
5
8
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
9
 
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,7 @@
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).
3
+ >This is a **Sanity Studio v2** plugin.
4
+ > For the V3 version, please refer to the [v3-branch](https://github.com/sanity-io/document-internationalization).
8
5
 
9
6
  [![npm version](https://img.shields.io/npm/v/@sanity/document-internationalization.svg?style=flat)](https://www.npmjs.com/package/@sanity/document-internationalization)
10
7
 
@@ -43,11 +40,16 @@ A good use of field-level translation could be a `person` schema. It could have
43
40
 
44
41
  With the [Sanity CLI installed](https://www.sanity.io/docs/getting-started-with-sanity-cli), from the same directory as the Studio run:
45
42
 
46
- ```
47
- sanity install @sanity/document-internationalization
43
+ ```sh
44
+ yarn add @sanity/document-internationalization@studio-v2
48
45
  ```
49
46
 
50
- Ensure that `@sanity/document-internationalization` is listed in `plugins` inside `sanity.json`.
47
+ Next, add `"@sanity/document-internationalization"` to `sanity.json` plugins array:
48
+ ```json
49
+ "plugins": [
50
+ "@sanity/document-internationalization"
51
+ ]
52
+ ```
51
53
 
52
54
  The plugin is now installed, but you will need to complete the following steps to see the Document Translation UI:
53
55
 
@@ -1551,7 +1551,13 @@ var UiMessages = {
1551
1551
  orphanDocuments: 'orphaned translation document(s)',
1552
1552
  referenceBehaviorMismatch: 'document(s) with mismatched reference behaviors',
1553
1553
  baseLanguageMismatch: 'base document(s) with mismatched language field',
1554
- fix: 'Fix'
1554
+ fix: 'Fix',
1555
+ pendingTransactionDialog: {
1556
+ header: 'Confirm pending transaction',
1557
+ caution: 'Before continuing please review the transactions. Keep in mind, the translation maintenance functionality may remove or update many documents at once. It is recommended to back-up your dataset before performing data maintenance',
1558
+ cancel: 'Cancel',
1559
+ confirm: 'Confirm operation'
1560
+ }
1555
1561
  },
1556
1562
  errors: {
1557
1563
  baseDocumentNotPublished: 'It looks like you have not published your base translation yet. When using strong references it is required to publish the base document before publishing any translated entries'