@sanity/document-internationalization 0.3.0 → 0.3.3
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 +3 -0
- package/README.md +7 -6
- package/lib/actions/index.js +2 -2
- package/lib/actions/index.js.map +1 -1
- package/lib/constants/index.js +2 -2
- package/lib/constants/index.js.map +1 -1
- package/lib/language-select/components/SingleFlag/SingleFlag.d.ts +0 -1
- package/lib/language-select/index.js +3959 -222
- package/lib/language-select/index.js.map +1 -1
- package/lib/structure/index.js +2 -2
- package/lib/structure/index.js.map +1 -1
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v0.3.3
|
|
4
|
+
* Fixes [#59](https://github.com/sanity-io/document-internationalization/issues/59) - Missing `_weak` field in base reference
|
|
5
|
+
|
|
3
6
|
## v0.1.7
|
|
4
7
|
* 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
8
|
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ There are two popular methods of internationalization in Sanity Studio:
|
|
|
21
21
|
|
|
22
22
|
This plugin adds features to the Studio to improve handling **document-level translations**.
|
|
23
23
|
|
|
24
|
-
- A
|
|
24
|
+
- A Language Selector to create and browse language-specific versions of each Document
|
|
25
25
|
- Document Actions to update base and translated documents to ensure references stay in tact
|
|
26
26
|
- Document Badges to highlight the language version of a document
|
|
27
27
|
|
|
@@ -47,12 +47,12 @@ The plugin is now installed, but you will need to complete the following steps t
|
|
|
47
47
|
|
|
48
48
|
## Setup next steps
|
|
49
49
|
|
|
50
|
-
1. [
|
|
51
|
-
To setup the 'Translations' View Pane on Documents
|
|
52
|
-
2. [Configuration options](docs/configuration-options.md)
|
|
50
|
+
1. [Configuration options](docs/configuration-options.md)
|
|
53
51
|
To declare available Languages and other settings
|
|
54
|
-
|
|
52
|
+
2. [Activating internationalization on schema](docs/activating-internationalization-on-schema.md)
|
|
55
53
|
To enable all the above features on schema
|
|
54
|
+
3. [Customise Desk Structure](docs/desk-structure.md)
|
|
55
|
+
To filter documents down to the base language version
|
|
56
56
|
|
|
57
57
|
## Other documentation
|
|
58
58
|
|
|
@@ -62,7 +62,8 @@ The plugin is now installed, but you will need to complete the following steps t
|
|
|
62
62
|
4. [GraphQL support](docs/graphql-intl-doc.md)
|
|
63
63
|
5. [Advanced languages](docs/advanced-languages.md)
|
|
64
64
|
6. [Usage with custom publish action](docs/usage-with-custom-publish.md)
|
|
65
|
-
7. [
|
|
65
|
+
7. [If you don't see the plugin document actions](docs/usage-with-custom-publish.md#add-additional-actions)
|
|
66
|
+
8. [GROQ query examples](/docs/groq-query-examples.md)
|
|
66
67
|
|
|
67
68
|
## Migrating from sanity-plugin-intl-input
|
|
68
69
|
|
package/lib/actions/index.js
CHANGED
|
@@ -1518,7 +1518,7 @@ var UiMessages = {
|
|
|
1518
1518
|
publishing: 'Publishing...',
|
|
1519
1519
|
publish: 'Publish',
|
|
1520
1520
|
updatingIntlFields: 'Updating i18n fields',
|
|
1521
|
-
intlFieldsUpdated: '
|
|
1521
|
+
intlFieldsUpdated: 'i18n fields updated',
|
|
1522
1522
|
baseDocumentCopied: 'Base document copied',
|
|
1523
1523
|
translationCreatedToast: {
|
|
1524
1524
|
title: function title(name) {
|
|
@@ -1531,7 +1531,7 @@ var UiMessages = {
|
|
|
1531
1531
|
loading: 'Loading languages...',
|
|
1532
1532
|
draft: 'Draft',
|
|
1533
1533
|
missingTranslations: 'Following languages are missing some translations compared to the base language',
|
|
1534
|
-
base: 'Base
|
|
1534
|
+
base: 'Base',
|
|
1535
1535
|
missing: 'Missing',
|
|
1536
1536
|
deleteAll: {
|
|
1537
1537
|
buttonTitle: 'Delete (incl. translations)',
|