@commercetools-frontend-extensions/import-resources-modal 2.3.1 → 2.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/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +11 -254
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +11 -254
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +10 -254
- package/dist/{de-0448f656.cjs.dev.js → de-0ce529e5.cjs.prod.js} +20 -132
- package/dist/{de-47c75212.cjs.prod.js → de-a31d2063.cjs.dev.js} +20 -132
- package/dist/{de-f7d3c8d9.esm.js → de-eee36ea3.esm.js} +20 -132
- package/dist/{en-7485a81f.cjs.prod.js → en-20fa3390.cjs.prod.js} +20 -132
- package/dist/{en-68bea2f6.cjs.dev.js → en-35a7944d.cjs.dev.js} +20 -132
- package/dist/{en-55526354.esm.js → en-390271f2.esm.js} +20 -132
- package/dist/{es-16601155.esm.js → es-041827ba.esm.js} +20 -132
- package/dist/{es-940bc30c.cjs.dev.js → es-81c2ca0d.cjs.dev.js} +20 -132
- package/dist/{es-8928a452.cjs.prod.js → es-f002fb75.cjs.prod.js} +20 -132
- package/dist/{fr-FR-ce1cba13.esm.js → fr-FR-2de7210f.esm.js} +20 -132
- package/dist/{fr-FR-d70727e6.cjs.dev.js → fr-FR-623135de.cjs.dev.js} +20 -132
- package/dist/{fr-FR-009e5200.cjs.prod.js → fr-FR-6934dd9a.cjs.prod.js} +20 -132
- package/dist/{pt-BR-896c08dd.cjs.prod.js → pt-BR-738d57c6.cjs.dev.js} +20 -132
- package/dist/{pt-BR-6ad16c8c.esm.js → pt-BR-7d1bf76a.esm.js} +20 -132
- package/dist/{pt-BR-44964d81.cjs.dev.js → pt-BR-fc6fee1b.cjs.prod.js} +20 -132
- package/package.json +4 -3
|
@@ -10,7 +10,7 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
11
11
|
import { defineMessages, useIntl, FormattedMessage, IntlProvider } from 'react-intl';
|
|
12
12
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
13
|
-
import { deleteImportContainer, FileDroppedArea, DisabledDropArea, EnabledDropArea, ActiveDragDropArea, COLUMN_DELIMITERS, useFileUpload, isPublishableResourceType, validateDelimiter, getRowCount, toBytes, IMPORT_MAX_FILE_SIZE_MB, IMPORT_MAX_ITEM_COUNT, isAbortError, HttpError, formatKeys, PollingTimeoutError, isError, assertResourceType, FileDropArea as FileDropArea$1, InfoBox, CT_API_DOCS_URL, UploadSeparator, UploadSettings, getPublishCheckboxTrackingTarget, useFetchFileImportJobRecords, mapUploadFileErrorsResponseToUploadFileErrorRows, UnexpectedColumnError, extractErrorDescriptionFromValidationMessage, formatErrorCode, RESOURCE_TYPE_DOCUMENTATION_LINKS, mapFileUploadErrorsToUploadFileErrorRows, getValidatedColumns, processFileImportJob, processUploadedFile, UploadingModal, UnexpectedResourceTypeError
|
|
13
|
+
import { deleteImportContainer, FileDroppedArea, DisabledDropArea, EnabledDropArea, ActiveDragDropArea, COLUMN_DELIMITERS, useFileUpload, isPublishableResourceType, validateDelimiter, getRowCount, toBytes, IMPORT_MAX_FILE_SIZE_MB, IMPORT_MAX_ITEM_COUNT, isAbortError, HttpError, formatKeys, PollingTimeoutError, isError, assertResourceType, FileDropArea as FileDropArea$1, InfoBox, CT_API_DOCS_URL, UploadSeparator, UploadSettings, getPublishCheckboxTrackingTarget, useFetchFileImportJobRecords, mapUploadFileErrorsResponseToUploadFileErrorRows, UnexpectedColumnError, extractErrorDescriptionFromValidationMessage, formatErrorCode, RESOURCE_TYPE_DOCUMENTATION_LINKS, mapFileUploadErrorsToUploadFileErrorRows, resourceTypeToMessage, resourceTypeToPluralMessage, getValidatedColumns, processFileImportJob, processUploadedFile, UploadingModal, UnexpectedResourceTypeError, RESOURCE_TYPE_TEMPLATE_DOWNLOAD_LINKS, loadOperationsSharedMessages, isResourceType } from '@commercetools-frontend-extensions/operations';
|
|
14
14
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
15
15
|
import React, { useContext, useMemo, useState, useEffect } from 'react';
|
|
16
16
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
@@ -32,6 +32,7 @@ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance
|
|
|
32
32
|
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
33
33
|
import _styled from '@emotion/styled/base';
|
|
34
34
|
import '@emotion/react';
|
|
35
|
+
import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
35
36
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
36
37
|
|
|
37
38
|
let CurrentStep$1 = /*#__PURE__*/function (CurrentStep) {
|
|
@@ -458,20 +459,6 @@ var messages$6 = defineMessages({
|
|
|
458
459
|
}
|
|
459
460
|
});
|
|
460
461
|
|
|
461
|
-
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
462
|
-
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
463
|
-
let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
464
|
-
function UnexpectedResourceTypeError(resourceType) {
|
|
465
|
-
var _this;
|
|
466
|
-
_classCallCheck(this, UnexpectedResourceTypeError);
|
|
467
|
-
_this = _callSuper$1(this, UnexpectedResourceTypeError, [`Unexpected resource type "${resourceType}"`]);
|
|
468
|
-
_this.name = 'UnexpectedResourceTypeError';
|
|
469
|
-
return _this;
|
|
470
|
-
}
|
|
471
|
-
_inherits(UnexpectedResourceTypeError, _Error);
|
|
472
|
-
return _createClass(UnexpectedResourceTypeError);
|
|
473
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
474
|
-
|
|
475
462
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
476
463
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
477
464
|
let MissingImportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
@@ -662,184 +649,7 @@ var sharedMessages = defineMessages({
|
|
|
662
649
|
id: 'ImportResourcesModal.delimiterTab',
|
|
663
650
|
description: 'Label for the delimiter name tab',
|
|
664
651
|
defaultMessage: 'tab'
|
|
665
|
-
},
|
|
666
|
-
// Resource types
|
|
667
|
-
product: {
|
|
668
|
-
id: 'ImportResourcesModal.product',
|
|
669
|
-
description: 'Label for the product resource type',
|
|
670
|
-
defaultMessage: 'Product'
|
|
671
|
-
},
|
|
672
|
-
products: {
|
|
673
|
-
id: 'ImportResourcesModal.products',
|
|
674
|
-
description: 'Label for the products resource type',
|
|
675
|
-
defaultMessage: 'Products'
|
|
676
|
-
},
|
|
677
|
-
inventory: {
|
|
678
|
-
id: 'ImportResourcesModal.inventory',
|
|
679
|
-
description: 'Label for the inventory entry resource type',
|
|
680
|
-
defaultMessage: 'Inventory'
|
|
681
|
-
},
|
|
682
|
-
inventories: {
|
|
683
|
-
id: 'ImportResourcesModal.inventories',
|
|
684
|
-
description: 'Label for the inventories entry resource type',
|
|
685
|
-
defaultMessage: 'Inventories'
|
|
686
|
-
},
|
|
687
|
-
category: {
|
|
688
|
-
id: 'ImportResourcesModal.category',
|
|
689
|
-
description: 'Label for the category resource type',
|
|
690
|
-
defaultMessage: 'Category'
|
|
691
|
-
},
|
|
692
|
-
categories: {
|
|
693
|
-
id: 'ImportResourcesModal.categories',
|
|
694
|
-
description: 'Label for the categories resource type',
|
|
695
|
-
defaultMessage: 'Categories'
|
|
696
|
-
},
|
|
697
|
-
'custom-object': {
|
|
698
|
-
id: 'ImportResourcesModal.custom-object',
|
|
699
|
-
description: 'Label for the custom-object resource type',
|
|
700
|
-
defaultMessage: 'Custom object'
|
|
701
|
-
},
|
|
702
|
-
'custom-objects': {
|
|
703
|
-
id: 'ImportResourcesModal.custom-objects',
|
|
704
|
-
description: 'Label for the custom-objects resource type',
|
|
705
|
-
defaultMessage: 'Custom objects'
|
|
706
|
-
},
|
|
707
|
-
customer: {
|
|
708
|
-
id: 'ImportResourcesModal.customer',
|
|
709
|
-
description: 'Label for the customer resource type',
|
|
710
|
-
defaultMessage: 'Customer'
|
|
711
|
-
},
|
|
712
|
-
customers: {
|
|
713
|
-
id: 'ImportResourcesModal.customers',
|
|
714
|
-
description: 'Label for the customers resource type',
|
|
715
|
-
defaultMessage: 'Customers'
|
|
716
|
-
},
|
|
717
|
-
order: {
|
|
718
|
-
id: 'ImportResourcesModal.order',
|
|
719
|
-
description: 'Label for the order resource type',
|
|
720
|
-
defaultMessage: 'Order'
|
|
721
|
-
},
|
|
722
|
-
orders: {
|
|
723
|
-
id: 'ImportResourcesModal.orders',
|
|
724
|
-
description: 'Label for the orders resource type',
|
|
725
|
-
defaultMessage: 'Orders'
|
|
726
|
-
},
|
|
727
|
-
'order-patch': {
|
|
728
|
-
id: 'ImportResourcesModal.order-patch',
|
|
729
|
-
description: 'Label for the order-patch resource type',
|
|
730
|
-
defaultMessage: 'Order patch'
|
|
731
|
-
},
|
|
732
|
-
'order-patches': {
|
|
733
|
-
id: 'ImportResourcesModal.order-patches',
|
|
734
|
-
description: 'Label for the order-patches resource type',
|
|
735
|
-
defaultMessage: 'Order patches'
|
|
736
|
-
},
|
|
737
|
-
price: {
|
|
738
|
-
id: 'ImportResourcesModal.price',
|
|
739
|
-
description: 'Label for the price resource type',
|
|
740
|
-
defaultMessage: 'Price'
|
|
741
|
-
},
|
|
742
|
-
prices: {
|
|
743
|
-
id: 'ImportResourcesModal.prices',
|
|
744
|
-
description: 'Label for the prices resource type',
|
|
745
|
-
defaultMessage: 'Prices'
|
|
746
|
-
},
|
|
747
|
-
'product-draft': {
|
|
748
|
-
id: 'ImportResourcesModal.product-draft',
|
|
749
|
-
description: 'Label for the product-draft resource type',
|
|
750
|
-
defaultMessage: 'Product draft'
|
|
751
|
-
},
|
|
752
|
-
'product-drafts': {
|
|
753
|
-
id: 'ImportResourcesModal.product-drafts',
|
|
754
|
-
description: 'Label for the product-drafts resource type',
|
|
755
|
-
defaultMessage: 'Product drafts'
|
|
756
|
-
},
|
|
757
|
-
'product-type': {
|
|
758
|
-
id: 'ImportResourcesModal.product-type',
|
|
759
|
-
description: 'Label for the product-type resource type',
|
|
760
|
-
defaultMessage: 'Product type'
|
|
761
|
-
},
|
|
762
|
-
'product-types': {
|
|
763
|
-
id: 'ImportResourcesModal.product-types',
|
|
764
|
-
description: 'Label for the product-types resource type',
|
|
765
|
-
defaultMessage: 'Product types'
|
|
766
|
-
},
|
|
767
|
-
'product-variant': {
|
|
768
|
-
id: 'ImportResourcesModal.product-variant',
|
|
769
|
-
description: 'Label for the product-variant resource type',
|
|
770
|
-
defaultMessage: 'Product variant'
|
|
771
|
-
},
|
|
772
|
-
'product-variants': {
|
|
773
|
-
id: 'ImportResourcesModal.product-variants',
|
|
774
|
-
description: 'Label for the product-variants resource type',
|
|
775
|
-
defaultMessage: 'Product variants'
|
|
776
|
-
},
|
|
777
|
-
'product-variant-patch': {
|
|
778
|
-
id: 'ImportResourcesModal.product-variant-patch',
|
|
779
|
-
description: 'Label for the product-variant-patch resource type',
|
|
780
|
-
defaultMessage: 'Product variant patch'
|
|
781
|
-
},
|
|
782
|
-
'product-variant-patches': {
|
|
783
|
-
id: 'ImportResourcesModal.product-variant-patches',
|
|
784
|
-
description: 'Label for the product-variant-patches resource type',
|
|
785
|
-
defaultMessage: 'Product variant patches'
|
|
786
|
-
},
|
|
787
|
-
'standalone-price': {
|
|
788
|
-
id: 'ImportResourcesModal.standalone-price',
|
|
789
|
-
description: 'Label for the standalone-price resource type',
|
|
790
|
-
defaultMessage: 'Standalone price'
|
|
791
|
-
},
|
|
792
|
-
'standalone-prices': {
|
|
793
|
-
id: 'ImportResourcesModal.standalone-prices',
|
|
794
|
-
description: 'Label for the standalone-prices resource type',
|
|
795
|
-
defaultMessage: 'Standalone prices'
|
|
796
|
-
},
|
|
797
|
-
type: {
|
|
798
|
-
id: 'ImportResourcesModal.type',
|
|
799
|
-
description: 'Label for the type resource type',
|
|
800
|
-
defaultMessage: 'Type'
|
|
801
|
-
},
|
|
802
|
-
types: {
|
|
803
|
-
id: 'ImportResourcesModal.types',
|
|
804
|
-
description: 'Label for the types resource type',
|
|
805
|
-
defaultMessage: 'Types'
|
|
806
|
-
},
|
|
807
|
-
'discount-code': {
|
|
808
|
-
id: 'ImportResourcesModal.discount-code',
|
|
809
|
-
description: 'Label for the discount-code resource type',
|
|
810
|
-
defaultMessage: 'Discount code'
|
|
811
|
-
},
|
|
812
|
-
'discount-codes': {
|
|
813
|
-
id: 'ImportResourcesModal.discount-codes',
|
|
814
|
-
description: 'Label for the discount-codes resource type',
|
|
815
|
-
defaultMessage: 'Discount codes'
|
|
816
|
-
},
|
|
817
|
-
'business-unit': {
|
|
818
|
-
id: 'ImportResourcesModal.business-unit',
|
|
819
|
-
description: 'Label for the business-unit resource type',
|
|
820
|
-
defaultMessage: 'Business unit'
|
|
821
|
-
},
|
|
822
|
-
'business-units': {
|
|
823
|
-
id: 'ImportResourcesModal.business-units',
|
|
824
|
-
description: 'Label for the business-units resource type',
|
|
825
|
-
defaultMessage: 'Business units'
|
|
826
|
-
},
|
|
827
|
-
'product-tailoring': {
|
|
828
|
-
id: 'ImportResourcesModal.product-tailoring',
|
|
829
|
-
description: 'Label for the product-tailoring resource type',
|
|
830
|
-
defaultMessage: 'Tailored product'
|
|
831
|
-
},
|
|
832
|
-
'product-tailorings': {
|
|
833
|
-
id: 'ImportResourcesModal.product-tailorings',
|
|
834
|
-
description: 'Label for the product-tailorings resource type',
|
|
835
|
-
defaultMessage: 'Tailored products'
|
|
836
|
-
},
|
|
837
|
-
unknownResourceType: {
|
|
838
|
-
id: 'ImportResourcesModal.unknown-resource-type',
|
|
839
|
-
description: 'Label for the unknown resource type',
|
|
840
|
-
defaultMessage: 'Unknown resource type'
|
|
841
652
|
}
|
|
842
|
-
//
|
|
843
653
|
});
|
|
844
654
|
|
|
845
655
|
const formatAllowedDelimitersForMessageDisplay = intl => {
|
|
@@ -872,60 +682,6 @@ const formatAllowedDelimitersForMessageDisplay = intl => {
|
|
|
872
682
|
return `${descriptions.join(', ')} ${localizedOr} ${lastDescription}`;
|
|
873
683
|
};
|
|
874
684
|
|
|
875
|
-
function resourceTypeToMessage(resourceType) {
|
|
876
|
-
const resourceTypeMap = {
|
|
877
|
-
category: sharedMessages.category,
|
|
878
|
-
product: sharedMessages.product,
|
|
879
|
-
'product-type': sharedMessages['product-type'],
|
|
880
|
-
order: sharedMessages.order,
|
|
881
|
-
customer: sharedMessages.customer,
|
|
882
|
-
'discount-code': sharedMessages['discount-code'],
|
|
883
|
-
inventory: sharedMessages.inventory,
|
|
884
|
-
'inventory-entry': sharedMessages.inventory,
|
|
885
|
-
'order-patch': sharedMessages['order-patch'],
|
|
886
|
-
price: sharedMessages.price,
|
|
887
|
-
'product-draft': sharedMessages['product-draft'],
|
|
888
|
-
'product-variant': sharedMessages['product-variant'],
|
|
889
|
-
'product-variant-patch': sharedMessages['product-variant-patch'],
|
|
890
|
-
'standalone-price': sharedMessages['standalone-price'],
|
|
891
|
-
'custom-object': sharedMessages['custom-object'],
|
|
892
|
-
'business-unit': sharedMessages['business-unit'],
|
|
893
|
-
type: sharedMessages.type
|
|
894
|
-
};
|
|
895
|
-
const message = resourceTypeMap[resourceType];
|
|
896
|
-
if (!message) {
|
|
897
|
-
console.warn(new UnexpectedResourceTypeError(resourceType));
|
|
898
|
-
return sharedMessages.unknownResourceType;
|
|
899
|
-
}
|
|
900
|
-
return message;
|
|
901
|
-
}
|
|
902
|
-
function resourceTypeToPluralMessage(resourceType) {
|
|
903
|
-
const resourceTypePluralMap = {
|
|
904
|
-
category: sharedMessages.categories,
|
|
905
|
-
'custom-object': sharedMessages['custom-objects'],
|
|
906
|
-
product: sharedMessages.products,
|
|
907
|
-
'product-type': sharedMessages['product-types'],
|
|
908
|
-
order: sharedMessages.orders,
|
|
909
|
-
customer: sharedMessages.customers,
|
|
910
|
-
'discount-code': sharedMessages['discount-codes'],
|
|
911
|
-
inventory: sharedMessages.inventories,
|
|
912
|
-
'inventory-entry': sharedMessages.inventories,
|
|
913
|
-
'order-patch': sharedMessages['order-patches'],
|
|
914
|
-
price: sharedMessages.prices,
|
|
915
|
-
'product-draft': sharedMessages['product-drafts'],
|
|
916
|
-
'product-variant': sharedMessages['product-variants'],
|
|
917
|
-
'product-variant-patch': sharedMessages['product-variant-patches'],
|
|
918
|
-
'standalone-price': sharedMessages['standalone-prices'],
|
|
919
|
-
'business-unit': sharedMessages['business-units']
|
|
920
|
-
};
|
|
921
|
-
const message = resourceTypePluralMap[resourceType];
|
|
922
|
-
if (!message) {
|
|
923
|
-
console.warn(new UnexpectedResourceTypeError(resourceType));
|
|
924
|
-
return sharedMessages.unknownResourceType;
|
|
925
|
-
}
|
|
926
|
-
return message;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
685
|
function ownKeys$8(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
930
686
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
931
687
|
const useUpload = () => {
|
|
@@ -2176,7 +1932,7 @@ const resourceTypeToDisplayName = resourceType => {
|
|
|
2176
1932
|
case IMPORTABLE_RESOURCES.STANDALONE_PRICE:
|
|
2177
1933
|
return messages$1.standalonePrices;
|
|
2178
1934
|
default:
|
|
2179
|
-
throw new UnexpectedResourceTypeError
|
|
1935
|
+
throw new UnexpectedResourceTypeError(resourceType);
|
|
2180
1936
|
}
|
|
2181
1937
|
};
|
|
2182
1938
|
const ResourceTypeSelection = () => {
|
|
@@ -2244,25 +2000,25 @@ const getChunkImport = locale => {
|
|
|
2244
2000
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
2245
2001
|
switch (intlLocale) {
|
|
2246
2002
|
case 'de':
|
|
2247
|
-
return import('./de-
|
|
2003
|
+
return import('./de-eee36ea3.esm.js');
|
|
2248
2004
|
case 'es':
|
|
2249
|
-
return import('./es-
|
|
2005
|
+
return import('./es-041827ba.esm.js');
|
|
2250
2006
|
case 'fr-FR':
|
|
2251
|
-
return import('./fr-FR-
|
|
2007
|
+
return import('./fr-FR-2de7210f.esm.js');
|
|
2252
2008
|
case 'ja':
|
|
2253
2009
|
return import('./ja-73c088a7.esm.js');
|
|
2254
2010
|
case 'pt-BR':
|
|
2255
|
-
return import('./pt-BR-
|
|
2011
|
+
return import('./pt-BR-7d1bf76a.esm.js');
|
|
2256
2012
|
default:
|
|
2257
|
-
return import('./en-
|
|
2013
|
+
return import('./en-390271f2.esm.js');
|
|
2258
2014
|
}
|
|
2259
2015
|
};
|
|
2260
2016
|
const loadMessages = async locale => {
|
|
2261
2017
|
try {
|
|
2018
|
+
const operationsSharedMessages = await loadOperationsSharedMessages(locale);
|
|
2262
2019
|
const chunkImport = await getChunkImport(locale);
|
|
2263
|
-
return parseChunkImport(chunkImport);
|
|
2020
|
+
return _Object$assign({}, operationsSharedMessages, parseChunkImport(chunkImport));
|
|
2264
2021
|
} catch (error) {
|
|
2265
|
-
// eslint-disable-next-line no-console
|
|
2266
2022
|
console.warn(`Something went wrong while loading the import-resources-modal messages for ${locale}`, error);
|
|
2267
2023
|
reportErrorToSentry(new Error(`Something went wrong while loading the import-resources-modal messages for ${locale}`), {
|
|
2268
2024
|
extra: error
|
|
@@ -7,26 +7,10 @@ var de = {
|
|
|
7
7
|
"ImportResourcesModal.browseFile": {
|
|
8
8
|
string: "Datei durchsuchen"
|
|
9
9
|
},
|
|
10
|
-
"ImportResourcesModal.business-unit": {
|
|
11
|
-
developer_comment: "Label for the business-unit resource type",
|
|
12
|
-
string: "Geschäftseinheit"
|
|
13
|
-
},
|
|
14
|
-
"ImportResourcesModal.business-units": {
|
|
15
|
-
developer_comment: "Label for the business-units resource type",
|
|
16
|
-
string: "Geschäftseinheiten"
|
|
17
|
-
},
|
|
18
10
|
"ImportResourcesModal.cancel": {
|
|
19
11
|
developer_comment: "Label for the cancel button",
|
|
20
12
|
string: "Abbrechen"
|
|
21
13
|
},
|
|
22
|
-
"ImportResourcesModal.categories": {
|
|
23
|
-
developer_comment: "Label for the categories resource type",
|
|
24
|
-
string: "Kategorien"
|
|
25
|
-
},
|
|
26
|
-
"ImportResourcesModal.category": {
|
|
27
|
-
developer_comment: "Label for the category resource type",
|
|
28
|
-
string: "Kategorie"
|
|
29
|
-
},
|
|
30
14
|
"ImportResourcesModal.chooseFile": {
|
|
31
15
|
developer_comment: "Label for a button on the file upload page, shown on ready to upload state",
|
|
32
16
|
string: "Datei auswählen"
|
|
@@ -59,22 +43,6 @@ var de = {
|
|
|
59
43
|
developer_comment: "Confirmation dialog continue button",
|
|
60
44
|
string: "Weiter"
|
|
61
45
|
},
|
|
62
|
-
"ImportResourcesModal.custom-object": {
|
|
63
|
-
developer_comment: "Label for the custom-object resource type",
|
|
64
|
-
string: "Benutzerdefiniertes Objekt"
|
|
65
|
-
},
|
|
66
|
-
"ImportResourcesModal.custom-objects": {
|
|
67
|
-
developer_comment: "Label for the custom-objects resource type",
|
|
68
|
-
string: "Benutzerdefinierte Objekte"
|
|
69
|
-
},
|
|
70
|
-
"ImportResourcesModal.customer": {
|
|
71
|
-
developer_comment: "Label for the customer resource type",
|
|
72
|
-
string: "Kunde"
|
|
73
|
-
},
|
|
74
|
-
"ImportResourcesModal.customers": {
|
|
75
|
-
developer_comment: "Label for the customers resource type",
|
|
76
|
-
string: "Kunden"
|
|
77
|
-
},
|
|
78
46
|
"ImportResourcesModal.dataType": {
|
|
79
47
|
developer_comment: "Label for the data type selection dropdown",
|
|
80
48
|
string: "Datentyp"
|
|
@@ -99,14 +67,6 @@ var de = {
|
|
|
99
67
|
developer_comment: "In Upload file error modal - \"Details\" column",
|
|
100
68
|
string: "Details"
|
|
101
69
|
},
|
|
102
|
-
"ImportResourcesModal.discount-code": {
|
|
103
|
-
developer_comment: "Label for the discount-code resource type",
|
|
104
|
-
string: "Rabattcode"
|
|
105
|
-
},
|
|
106
|
-
"ImportResourcesModal.discount-codes": {
|
|
107
|
-
developer_comment: "Label for the discount-codes resource type",
|
|
108
|
-
string: "Rabattcodes"
|
|
109
|
-
},
|
|
110
70
|
"ImportResourcesModal.dragAndDropCSV": {
|
|
111
71
|
developer_comment: "The message telling the user to drag and drop CSV file in the file drop area",
|
|
112
72
|
string: "Drag-and-Drop CSV"
|
|
@@ -151,14 +111,6 @@ var de = {
|
|
|
151
111
|
developer_comment: "Label for the instructions section",
|
|
152
112
|
string: "Anweisungen"
|
|
153
113
|
},
|
|
154
|
-
"ImportResourcesModal.inventories": {
|
|
155
|
-
developer_comment: "Label for the inventories entry resource type",
|
|
156
|
-
string: "Lagerbestände"
|
|
157
|
-
},
|
|
158
|
-
"ImportResourcesModal.inventory": {
|
|
159
|
-
developer_comment: "Label for the inventory entry resource type",
|
|
160
|
-
string: "Lagerbestand"
|
|
161
|
-
},
|
|
162
114
|
"ImportResourcesModal.itemsToBeImported": {
|
|
163
115
|
developer_comment: "This message indicates the number of items that are ready to be imported into the project.",
|
|
164
116
|
string: "{itemCount, plural, one {<b>1</b> {resourceType} zu importieren{publish, select, true { and published} other {}}} other {<b>{itemCount}</b> {resourceTypePlural} zu importieren{publish, select, true { and published} other {}}}}"
|
|
@@ -207,30 +159,22 @@ var de = {
|
|
|
207
159
|
developer_comment: "Label for the products modal title",
|
|
208
160
|
string: "Produkte nach CSV importieren"
|
|
209
161
|
},
|
|
162
|
+
"ImportResourcesModal.modalTitle.productTailoring": {
|
|
163
|
+
developer_comment: "Label for the product tailorings modal title",
|
|
164
|
+
string: "Maßgeschneiderte Produkte per CSV importieren"
|
|
165
|
+
},
|
|
210
166
|
"ImportResourcesModal.modalTitle.productType": {
|
|
211
167
|
developer_comment: "Label for the product type modal title",
|
|
212
168
|
string: "Produkttypen nach CSV importieren"
|
|
213
169
|
},
|
|
170
|
+
"ImportResourcesModal.modalTitle.standalonePrice": {
|
|
171
|
+
developer_comment: "Label for the standalone prices modal title",
|
|
172
|
+
string: "Preise per CSV importieren"
|
|
173
|
+
},
|
|
214
174
|
"ImportResourcesModal.or": {
|
|
215
175
|
developer_comment: "The word \"or\" in the drag and drop message",
|
|
216
176
|
string: "oder"
|
|
217
177
|
},
|
|
218
|
-
"ImportResourcesModal.order": {
|
|
219
|
-
developer_comment: "Label for the order resource type",
|
|
220
|
-
string: "Bestellung"
|
|
221
|
-
},
|
|
222
|
-
"ImportResourcesModal.order-patch": {
|
|
223
|
-
developer_comment: "Label for the order-patch resource type",
|
|
224
|
-
string: "Bestellpatch"
|
|
225
|
-
},
|
|
226
|
-
"ImportResourcesModal.order-patches": {
|
|
227
|
-
developer_comment: "Label for the order-patches resource type",
|
|
228
|
-
string: "Bestellpatches"
|
|
229
|
-
},
|
|
230
|
-
"ImportResourcesModal.orders": {
|
|
231
|
-
developer_comment: "Label for the orders resource type",
|
|
232
|
-
string: "Bestellungen"
|
|
233
|
-
},
|
|
234
178
|
"ImportResourcesModal.prepareMessage": {
|
|
235
179
|
developer_comment: "Notification for preparing import",
|
|
236
180
|
string: "<b>Import vorbereiten</b><newline></newline>Sobald die Vorbereitung abgeschlossen ist, können Sie den Importfortschritt <logsLink>in den Importprotokollen</logsLink> verfolgen."
|
|
@@ -239,54 +183,6 @@ var de = {
|
|
|
239
183
|
developer_comment: "Label for modal path",
|
|
240
184
|
string: "Hier eine Vorschau des Imports"
|
|
241
185
|
},
|
|
242
|
-
"ImportResourcesModal.price": {
|
|
243
|
-
developer_comment: "Label for the price resource type",
|
|
244
|
-
string: "Preis"
|
|
245
|
-
},
|
|
246
|
-
"ImportResourcesModal.prices": {
|
|
247
|
-
developer_comment: "Label for the prices resource type",
|
|
248
|
-
string: "Preise"
|
|
249
|
-
},
|
|
250
|
-
"ImportResourcesModal.product": {
|
|
251
|
-
developer_comment: "Label for the product resource type",
|
|
252
|
-
string: "Produkt"
|
|
253
|
-
},
|
|
254
|
-
"ImportResourcesModal.product-draft": {
|
|
255
|
-
developer_comment: "Label for the product-draft resource type",
|
|
256
|
-
string: "Produktentwurf"
|
|
257
|
-
},
|
|
258
|
-
"ImportResourcesModal.product-drafts": {
|
|
259
|
-
developer_comment: "Label for the product-drafts resource type",
|
|
260
|
-
string: "Produktentwürfe"
|
|
261
|
-
},
|
|
262
|
-
"ImportResourcesModal.product-type": {
|
|
263
|
-
developer_comment: "Label for the product-type resource type",
|
|
264
|
-
string: "Produkttyp"
|
|
265
|
-
},
|
|
266
|
-
"ImportResourcesModal.product-types": {
|
|
267
|
-
developer_comment: "Label for the product-types resource type",
|
|
268
|
-
string: "Produkttypen"
|
|
269
|
-
},
|
|
270
|
-
"ImportResourcesModal.product-variant": {
|
|
271
|
-
developer_comment: "Label for the product-variant resource type",
|
|
272
|
-
string: "Produktvariante"
|
|
273
|
-
},
|
|
274
|
-
"ImportResourcesModal.product-variant-patch": {
|
|
275
|
-
developer_comment: "Label for the product-variant-patch resource type",
|
|
276
|
-
string: "Produktvarianten-Patch"
|
|
277
|
-
},
|
|
278
|
-
"ImportResourcesModal.product-variant-patches": {
|
|
279
|
-
developer_comment: "Label for the product-variant-patches resource type",
|
|
280
|
-
string: "Produktvarianten-Patches"
|
|
281
|
-
},
|
|
282
|
-
"ImportResourcesModal.product-variants": {
|
|
283
|
-
developer_comment: "Label for the product-variants resource type",
|
|
284
|
-
string: "Produktvarianten"
|
|
285
|
-
},
|
|
286
|
-
"ImportResourcesModal.products": {
|
|
287
|
-
developer_comment: "Label for the products resource type",
|
|
288
|
-
string: "Produkte"
|
|
289
|
-
},
|
|
290
186
|
"ImportResourcesModal.radio.categories": {
|
|
291
187
|
developer_comment: "Label for the categories radio button",
|
|
292
188
|
string: "Kategorien"
|
|
@@ -295,10 +191,18 @@ var de = {
|
|
|
295
191
|
developer_comment: "Label for the inventories radio button",
|
|
296
192
|
string: "Lagerbestände"
|
|
297
193
|
},
|
|
194
|
+
"ImportResourcesModal.radio.productTailorings": {
|
|
195
|
+
developer_comment: "Label for the product tailorings radio button",
|
|
196
|
+
string: "Maßgeschneiderte Produkte"
|
|
197
|
+
},
|
|
298
198
|
"ImportResourcesModal.radio.products": {
|
|
299
199
|
developer_comment: "Label for the products radio button",
|
|
300
200
|
string: "Produkte (einschließlich Varianten, Assets, Preise und Bilder)"
|
|
301
201
|
},
|
|
202
|
+
"ImportResourcesModal.radio.standalonePrices": {
|
|
203
|
+
developer_comment: "Label for the standalone prices radio button",
|
|
204
|
+
string: "Einzelpreise"
|
|
205
|
+
},
|
|
302
206
|
"ImportResourcesModal.row": {
|
|
303
207
|
developer_comment: "In Upload file error modal - \"Row\" column",
|
|
304
208
|
string: "Zeile"
|
|
@@ -314,6 +218,10 @@ var de = {
|
|
|
314
218
|
developer_comment: "Label for the publish products checkbox",
|
|
315
219
|
string: "Alle Produkte in der Datei veröffentlichen"
|
|
316
220
|
},
|
|
221
|
+
"ImportResourcesModal.settings.publishTailoredProducts": {
|
|
222
|
+
developer_comment: "Label for the publish tailored products checkbox",
|
|
223
|
+
string: "Alle maßgeschneiderten Produkte in der Datei veröffentlichen"
|
|
224
|
+
},
|
|
317
225
|
"ImportResourcesModal.showLess": {
|
|
318
226
|
developer_comment: "A button label for collapsing the import preview to show fewer details.",
|
|
319
227
|
string: "Weniger anzeigen"
|
|
@@ -329,14 +237,6 @@ var de = {
|
|
|
329
237
|
"ImportResourcesModal.sizeExceededTitle": {
|
|
330
238
|
string: "Dateigröße überschritten"
|
|
331
239
|
},
|
|
332
|
-
"ImportResourcesModal.standalone-price": {
|
|
333
|
-
developer_comment: "Label for the standalone-price resource type",
|
|
334
|
-
string: "Einzelpreis"
|
|
335
|
-
},
|
|
336
|
-
"ImportResourcesModal.standalone-prices": {
|
|
337
|
-
developer_comment: "Label for the standalone-prices resource type",
|
|
338
|
-
string: "Einzelpreise"
|
|
339
|
-
},
|
|
340
240
|
"ImportResourcesModal.startImportButton": {
|
|
341
241
|
developer_comment: "Label for the modal Start import button",
|
|
342
242
|
string: "Import starten"
|
|
@@ -353,22 +253,10 @@ var de = {
|
|
|
353
253
|
developer_comment: "Error message displayed when a user drags and drops multiple files at once",
|
|
354
254
|
string: "Mehrere Dateien erkannt: Sie können jeweils nur eine Datei per Drag-and-Drop verschieben."
|
|
355
255
|
},
|
|
356
|
-
"ImportResourcesModal.type": {
|
|
357
|
-
developer_comment: "Label for the type resource type",
|
|
358
|
-
string: "Typ"
|
|
359
|
-
},
|
|
360
|
-
"ImportResourcesModal.types": {
|
|
361
|
-
developer_comment: "Label for the types resource type",
|
|
362
|
-
string: "Typen"
|
|
363
|
-
},
|
|
364
256
|
"ImportResourcesModal.unexpectedError": {
|
|
365
257
|
developer_comment: "Generic notification message when file upload fails",
|
|
366
258
|
string: "Während des Datei-Uploads ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut oder wenden Sie sich an den Support, wenn dieser Fehler erneut auftritt."
|
|
367
259
|
},
|
|
368
|
-
"ImportResourcesModal.unknown-resource-type": {
|
|
369
|
-
developer_comment: "Label for the unknown resource type",
|
|
370
|
-
string: "Unbekannter Ressourcentyp"
|
|
371
|
-
},
|
|
372
260
|
"ImportResourcesModal.uploadButton": {
|
|
373
261
|
developer_comment: "Label for the upload button",
|
|
374
262
|
string: "Hochladen und Vorschau"
|