@sanity/document-internationalization 0.1.3 → 0.1.6
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,14 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v0.1.6
|
|
4
|
+
* Fixed translation maintenance functionality
|
|
5
|
+
|
|
6
|
+
## v0.1.5
|
|
7
|
+
* Don't override `child` resolver as it is not required anymore. This way it will correctly fallback on the Studio's structure definition
|
|
8
|
+
|
|
9
|
+
## v0.1.4
|
|
10
|
+
* Fixed an issue with filtering `all:part:@sanity/desk-tool/language-select-component`
|
|
11
|
+
|
|
3
12
|
## v0.1.3
|
|
4
13
|
* The plugin will not show the language dropdown anymore for schemas that do not have `i18n` enabled. This version also brings support for the `@sanity/language-filter` plugin for non `i18n` schemas.
|
|
5
14
|
|
|
@@ -1962,11 +1962,15 @@ var LanguageSelectContainer = function LanguageSelectContainer(_ref) {
|
|
|
1962
1962
|
var schemaType = _ref.schemaType;
|
|
1963
1963
|
var documentContext = React__default["default"].useContext(DocumentPaneContext.DocumentPaneContext);
|
|
1964
1964
|
var FallbackImplementation = React__default["default"].useMemo(function () {
|
|
1965
|
-
|
|
1965
|
+
if (languageFilterImplementations__default["default"] && Array.isArray(languageFilterImplementations__default["default"])) {
|
|
1966
|
+
var _languageFilterImplem, _languageFilterImplem2;
|
|
1966
1967
|
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1968
|
+
return (_languageFilterImplem = languageFilterImplementations__default["default"] === null || languageFilterImplementations__default["default"] === void 0 ? void 0 : (_languageFilterImplem2 = languageFilterImplementations__default["default"].filter(function (component) {
|
|
1969
|
+
return LanguageSelectContainer !== component;
|
|
1970
|
+
})) === null || _languageFilterImplem2 === void 0 ? void 0 : _languageFilterImplem2[0]) !== null && _languageFilterImplem !== void 0 ? _languageFilterImplem : null;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
return null;
|
|
1970
1974
|
}, []);
|
|
1971
1975
|
|
|
1972
1976
|
if (schemaType !== null && schemaType !== void 0 && schemaType.i18n && (_documentContext$disp = documentContext.displayed) !== null && _documentContext$disp !== void 0 && _documentContext$disp._id) {
|