@capillarytech/creatives-library 7.15.3 → 7.15.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/containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
- package/containers/LanguageProvider/index.js +2 -0
- package/containers/LanguageProvider/tests/index.test.js +1 -0
- package/i18n.js +7 -2
- package/package.json +1 -1
- package/reducers.js +2 -0
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +420 -0
- package/tests/integration/TemplateCreation/api-response.js +1663 -0
- package/tests/integration/TemplateCreation/helper.js +23 -0
- package/tests/integration/TemplateCreation/mocks/initialState.js +428 -0
- package/tests/integration/TemplateCreation/msw-handler.js +48 -0
- package/translations/en.json +192 -4
- package/translations/ja-JP.json +2013 -0
- package/translations/zh.json +191 -3
- package/v2Components/CapActionButton/index.js +1 -0
- package/v2Components/CapVideoUpload/index.scss +0 -5
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
- package/v2Containers/CreativesContainer/index.js +2 -2
- package/v2Containers/CreativesContainer/selectors.js +2 -2
- package/v2Containers/CreativesContainer/tests/index.test.js +28 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +579 -12
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +386 -8
- package/v2Containers/Line/Container/Text/index.js +3 -2
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3285 -68
- package/v2Containers/Line/Container/index.js +1 -1
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3474 -72
- package/v2Containers/Rcs/index.js +3 -0
- package/v2Containers/Rcs/messages.js +1 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +9374 -250
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +772 -16
- package/v2Containers/SmsTrai/Create/tests/selectors.test.js +10 -0
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1544 -32
- package/v2Containers/Templates/index.js +2 -3
- package/v2Containers/Templates/messages.js +2 -2
- package/v2Containers/TemplatesV2/index.js +1 -1
- package/v2Containers/Viber/index.js +1 -0
- package/v2Containers/Whatsapp/index.js +0 -1
- package/v2Containers/Whatsapp/messages.js +1 -1
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +13703 -284
- package/v2Containers/mockdata.js +128 -0
|
@@ -45,15 +45,19 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
45
45
|
"app.components.CapVideoUpload.fileFormat": "Format: MP4",
|
|
46
46
|
"app.components.CapVideoUpload.imageReUpload": "Re upload",
|
|
47
47
|
"app.components.CapVideoUpload.or": "OR",
|
|
48
|
+
"app.components.CapVideoUpload.selectFromComputer": "Select from computer",
|
|
48
49
|
"app.components.CapVideoUpload.textMessageAddLabel": "How do you want to upload the image?",
|
|
49
50
|
"app.components.CapVideoUpload.textMessageCreateNew": "Create new",
|
|
50
51
|
"app.components.CapVideoUpload.textMessageORLabel": "OR",
|
|
51
52
|
"app.components.CapVideoUpload.textMessageSelectTemplate": "Select template",
|
|
52
|
-
"app.components.CapVideoUpload.uploadComputer": "Your computer",
|
|
53
53
|
"app.components.CapVideoUpload.videoIncorrectSize": "This file format/size is not supported.",
|
|
54
54
|
"app.components.CapVideoUpload.videoRatioDescription": "Video ratio: 9:16 to 16:9",
|
|
55
55
|
"app.components.CapVideoUpload.videoSizeDescription": "File size: Up to {size}",
|
|
56
|
+
"app.components.CapVideoUpload.whatsappErrorMessage": "Please upload the video with allowed file extension, size, dimension and aspect ratio",
|
|
57
|
+
"app.components.CapVideoUpload.whatsappFileFormat": "Format: MP4",
|
|
56
58
|
"app.components.TemplatePreview.includesOptoutTag": "Includes optout tag",
|
|
59
|
+
"app.components.TemplatePreview.optoutCharactersTotal": "Includes optout tag ({optoutUrlLength} characters)",
|
|
60
|
+
"app.components.TemplatePreview.whatsappMessageLength": "1 Message ({length} characters)",
|
|
57
61
|
"app.v2containers.SmsTrai.Create.deferEdit": "It is highly recommended to use a file directly downloaded from the DLT portal. Editing the file may cause data to truncate unexpectedly.",
|
|
58
62
|
"app.v2containers.SmsTrai.Create.doneButtonLabel": "Done",
|
|
59
63
|
"app.v2containers.SmsTrai.Create.downloadIssues": "Download issues",
|
|
@@ -182,18 +186,28 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
182
186
|
"creatives.componentsV2.CapActionButton.templateButtonLinkPlaceholder": "Enter button link",
|
|
183
187
|
"creatives.componentsV2.CapActionButton.templateButtonText": "Button text",
|
|
184
188
|
"creatives.componentsV2.CapActionButton.templateButtonTextPlaceholder": "Enter button text",
|
|
189
|
+
"creatives.componentsV2.CapDocumentUpload.docErrorDesc": "Please upload the document with allowed file extension and size",
|
|
190
|
+
"creatives.componentsV2.CapDocumentUpload.docReUpload": "Reupload",
|
|
191
|
+
"creatives.componentsV2.CapDocumentUpload.dragAndDrop": "Drag and drop document here",
|
|
192
|
+
"creatives.componentsV2.CapDocumentUpload.format": "Format: {format}",
|
|
193
|
+
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
194
|
+
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
195
|
+
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
196
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
185
197
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
186
198
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
187
199
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
188
200
|
"creatives.componentsV2.CapImageUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
201
|
+
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
189
202
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
190
|
-
"creatives.componentsV2.CapImageUpload.imageIncorrectSize": "Please upload the image with correct type, size and dimension",
|
|
191
203
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
192
204
|
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
193
205
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
194
206
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
195
207
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
196
208
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
209
|
+
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
210
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
197
211
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
198
212
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
199
213
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -279,8 +293,21 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
279
293
|
"creatives.componentsV2.SmsTest.header": "This is the SmsTest component !",
|
|
280
294
|
"creatives.componentsV2.SmsTest.inputSmsTemplate": "Please input sms template content.",
|
|
281
295
|
"creatives.componentsV2.SmsTest.inputTemplateName": "Please input template name.",
|
|
296
|
+
"creatives.componentsV2.TemplatePreview.charactersPerSms": "SMS chars",
|
|
297
|
+
"creatives.componentsV2.TemplatePreview.charactersTotal": "{smsCount} SMS ({charCount} characters)",
|
|
298
|
+
"creatives.componentsV2.TemplatePreview.close": "close",
|
|
282
299
|
"creatives.componentsV2.TemplatePreview.playVideo": "Play",
|
|
300
|
+
"creatives.componentsV2.TemplatePreview.preview": "Preview",
|
|
301
|
+
"creatives.componentsV2.TemplatePreview.previewGenerated": "Preview is being generated",
|
|
302
|
+
"creatives.componentsV2.TemplatePreview.previewGenerationMessage": "Preview is being generated",
|
|
283
303
|
"creatives.componentsV2.TemplatePreview.showDetails": "Show details",
|
|
304
|
+
"creatives.componentsV2.TemplatePreview.sms": "SMS",
|
|
305
|
+
"creatives.componentsV2.TemplatePreview.smsFormatType": "Message has unicode characters",
|
|
306
|
+
"creatives.componentsV2.TemplatePreview.smsIcon": "Sms Icon",
|
|
307
|
+
"creatives.componentsV2.TemplatePreview.testMessage": "Test Message",
|
|
308
|
+
"creatives.componentsV2.TemplatePreview.textMessageCharacter": "characters",
|
|
309
|
+
"creatives.componentsV2.TemplatePreview.textMessageLabel": "text msg-",
|
|
310
|
+
"creatives.componentsV2.TemplatePreview.videoPreviewTooltip": "This is just for preview purposes, video cannot be played here",
|
|
284
311
|
"creatives.componentsV2.Toastr.header": "This is the Toastr component !",
|
|
285
312
|
"creatives.componentsV2.ToastrMessage.close": "This is the ToastrMessage component !",
|
|
286
313
|
"creatives.componentsV2.ToastrMessage.header": "This is the ToastrMessage component !",
|
|
@@ -291,6 +318,7 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
291
318
|
"creatives.componentsV2.TopBar.logout": "Logout",
|
|
292
319
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
293
320
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
321
|
+
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
294
322
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
295
323
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
296
324
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -1029,6 +1057,7 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1029
1057
|
"creatives.containersV2.Creatives.templateDeleteConfirm": "Are you sure you want to delete this template?",
|
|
1030
1058
|
"creatives.containersV2.Creatives.templateDeleteSuccess": "SMS template deleted successfully",
|
|
1031
1059
|
"creatives.containersV2.Creatives.templateDuplicateSuccess": "Template duplicated successfully",
|
|
1060
|
+
"creatives.containersV2.Creatives.templateNameEmpty": "Template name cannot be empty",
|
|
1032
1061
|
"creatives.containersV2.Creatives.templateSelection": "Template selection",
|
|
1033
1062
|
"creatives.containersV2.Creatives.textTemplate": "Text",
|
|
1034
1063
|
"creatives.containersV2.Creatives.unMapButton": "Unmap",
|
|
@@ -1166,6 +1195,7 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1166
1195
|
"creatives.containersV2.Email.yes": "Yes",
|
|
1167
1196
|
"creatives.containersV2.EmailWrapper.createMode": "How do you want to create ?",
|
|
1168
1197
|
"creatives.containersV2.EmailWrapper.creativeName": "Creative name",
|
|
1198
|
+
"creatives.containersV2.EmailWrapper.emptyTemplateName": "Please enter template name.",
|
|
1169
1199
|
"creatives.containersV2.EmailWrapper.header": "This is EmailWrapper container !",
|
|
1170
1200
|
"creatives.containersV2.EmailWrapper.invalidUploadFileDesc": "Please select another file with valid file format.",
|
|
1171
1201
|
"creatives.containersV2.EmailWrapper.invalidUploadFileError": "File cannot be uploaded.",
|
|
@@ -1327,7 +1357,8 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1327
1357
|
"creatives.containersV2.LineImageCarousel.emptyTitleErrorMessage": "Template title can not be empty",
|
|
1328
1358
|
"creatives.containersV2.LineImageCarousel.enterTextActionTypeTitle": "Enter text",
|
|
1329
1359
|
"creatives.containersV2.LineImageCarousel.enterUriActionTypeTitle": "Enter url",
|
|
1330
|
-
"creatives.containersV2.LineImageCarousel.
|
|
1360
|
+
"creatives.containersV2.LineImageCarousel.imageDimenstionDesc": "Format: JPEG, PNG Dimensions: 1024px x 1024px Size: 1 MB",
|
|
1361
|
+
"creatives.containersV2.LineImageCarousel.imageDimenstionDescription": "Format: JPEG, PNG Aspect ratio: 1:1 Dimensions: 1024px x 1024px Size: 1 MB",
|
|
1331
1362
|
"creatives.containersV2.LineImageCarousel.imageGallery": "Gallery",
|
|
1332
1363
|
"creatives.containersV2.LineImageCarousel.imageReUpload": "Re upload",
|
|
1333
1364
|
"creatives.containersV2.LineImageCarousel.inValidUrliErrorMessage": "Action content uri is not valid",
|
|
@@ -1443,12 +1474,12 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1443
1474
|
"creatives.containersV2.LineWrapper.changeModalDescription": "The already added content for this card will be lost by changing the content tab.",
|
|
1444
1475
|
"creatives.containersV2.LineWrapper.changeModalLabel": "Do you still want to make the changes to content tab",
|
|
1445
1476
|
"creatives.containersV2.LineWrapper.changeModalTitle": "Changing content tab?",
|
|
1477
|
+
"creatives.containersV2.LineWrapper.flexLabel": "Card message",
|
|
1446
1478
|
"creatives.containersV2.LineWrapper.imageLabel": "Image",
|
|
1447
1479
|
"creatives.containersV2.LineWrapper.imagemapLabel": "Rich message",
|
|
1448
1480
|
"creatives.containersV2.LineWrapper.modalDiscardChangesButtonLabel": "No",
|
|
1449
1481
|
"creatives.containersV2.LineWrapper.modalSaveChangesButtonLabel": "Yes, change",
|
|
1450
1482
|
"creatives.containersV2.LineWrapper.stickerLabel": "Sticker",
|
|
1451
|
-
"creatives.containersV2.LineWrapper.templateLabel": "Card message",
|
|
1452
1483
|
"creatives.containersV2.LineWrapper.textLabel": "Text",
|
|
1453
1484
|
"creatives.containersV2.LineWrapper.videoLabel": "Rich video message",
|
|
1454
1485
|
"creatives.containersV2.Login.header": "This is login container change !",
|
|
@@ -1603,7 +1634,162 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1603
1634
|
"creatives.containersV2.MobilepushWrapper.image": "Image content",
|
|
1604
1635
|
"creatives.containersV2.MobilepushWrapper.text": "Text content",
|
|
1605
1636
|
"creatives.containersV2.NotFoundPage.header": "Looks like you are lost!",
|
|
1637
|
+
"creatives.containersV2.Rcs.addSmsCreative": "Add SMS creative",
|
|
1638
|
+
"creatives.containersV2.Rcs.buttonTextAndUrl": ", CTA button text & url",
|
|
1639
|
+
"creatives.containersV2.Rcs.disabledMediaTooltip": "Not yet enabled. Coming soon!",
|
|
1640
|
+
"creatives.containersV2.Rcs.dltEditHeader": "Edit SMS",
|
|
1641
|
+
"creatives.containersV2.Rcs.emptyTemplateDescErrorMessage": "Template message cannot be empty",
|
|
1642
|
+
"creatives.containersV2.Rcs.fallbackDesc": "We would suggest to add fallback SMS",
|
|
1643
|
+
"creatives.containersV2.Rcs.fallbackLabel": "Fallback SMS message",
|
|
1644
|
+
"creatives.containersV2.Rcs.fallbackMsgLenError": "Only 1 SMS (160 characters) allowed for fallback sms",
|
|
1645
|
+
"creatives.containersV2.Rcs.fallbackMsgPlaceholder": "Enter the text message content for fallback SMS",
|
|
1646
|
+
"creatives.containersV2.Rcs.fallbackPreviewtitle": "Preview of fallback SMS",
|
|
1647
|
+
"creatives.containersV2.Rcs.fallbackTextAreaLabel": "SMS message",
|
|
1648
|
+
"creatives.containersV2.Rcs.fallbackToolTip": "This is to deliver an RCS message as an SMS message to end users whose phones do not support RCS",
|
|
1649
|
+
"creatives.containersV2.Rcs.image": "and image",
|
|
1650
|
+
"creatives.containersV2.Rcs.mediaImage": "Image",
|
|
1651
|
+
"creatives.containersV2.Rcs.mediaLabel": "Media",
|
|
1652
|
+
"creatives.containersV2.Rcs.mediaNone": "None",
|
|
1653
|
+
"creatives.containersV2.Rcs.mediaVideo": "Video/Slideshow",
|
|
1654
|
+
"creatives.containersV2.Rcs.optional": "(Optional)",
|
|
1655
|
+
"creatives.containersV2.Rcs.rcsCreateNotification": "RCS template created successfully",
|
|
1656
|
+
"creatives.containersV2.Rcs.rcsDltDesc": "Select any of the existing templates",
|
|
1657
|
+
"creatives.containersV2.Rcs.rcsDltTitle": "SMS creative templates",
|
|
1658
|
+
"creatives.containersV2.Rcs.rcsDoneBtnToolTip": "Please add template name {type} to proceed further",
|
|
1659
|
+
"creatives.containersV2.Rcs.rcsEditNotification": "RCS template updated successfully",
|
|
1660
|
+
"creatives.containersV2.Rcs.templateButton": "Buttons",
|
|
1661
|
+
"creatives.containersV2.Rcs.templateButtonDesc": "Use buttons to redirect user to respective link or quick response/ action.",
|
|
1662
|
+
"creatives.containersV2.Rcs.templateCTAButton": "Call to action",
|
|
1663
|
+
"creatives.containersV2.Rcs.templateCTAButtonDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
|
|
1664
|
+
"creatives.containersV2.Rcs.templateDescLabel": "Text message",
|
|
1665
|
+
"creatives.containersV2.Rcs.templateDescLengthError": "Template message length cannot exceed 1000",
|
|
1666
|
+
"creatives.containersV2.Rcs.templateDescPlaceholder": "Enter the text message",
|
|
1667
|
+
"creatives.containersV2.Rcs.templateQRButton": "Quick reply",
|
|
1668
|
+
"creatives.containersV2.Rcs.templateQRButtonDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
|
|
1669
|
+
"creatives.containersV2.Rcs.templateTitle": "Title",
|
|
1670
|
+
"creatives.containersV2.Rcs.templateTitlePlaceholder": "Enter title",
|
|
1671
|
+
"creatives.containersV2.Rcs.textMessage": "and text message",
|
|
1672
|
+
"creatives.containersV2.Rcs.totalCharacters": "{smsCount} SMS ({number} characters)",
|
|
1606
1673
|
"creatives.containersV2.TagList.header": "This is TagList container !",
|
|
1674
|
+
"creatives.containersV2.Templates.accountConfigError": "This account is not configured properly. You can configure it",
|
|
1675
|
+
"creatives.containersV2.Templates.all": "All",
|
|
1676
|
+
"creatives.containersV2.Templates.alphabeticallyOption": "Alphabetically",
|
|
1677
|
+
"creatives.containersV2.Templates.areYouSureText": "Confirm delete template",
|
|
1678
|
+
"creatives.containersV2.Templates.blankTemplate": "Blank template",
|
|
1679
|
+
"creatives.containersV2.Templates.campaigns": "Campaigns",
|
|
1680
|
+
"creatives.containersV2.Templates.cancelText": "Cancel",
|
|
1681
|
+
"creatives.containersV2.Templates.category": "Category",
|
|
1682
|
+
"creatives.containersV2.Templates.chooseAccount": "Choose the account to send content",
|
|
1683
|
+
"creatives.containersV2.Templates.clearAll": "Clear all",
|
|
1684
|
+
"creatives.containersV2.Templates.continue": "Continue",
|
|
1685
|
+
"creatives.containersV2.Templates.createEmailActionButton": "Create email",
|
|
1686
|
+
"creatives.containersV2.Templates.createMessageContent": "New message",
|
|
1687
|
+
"creatives.containersV2.Templates.createNewActionButton": "Create new",
|
|
1688
|
+
"creatives.containersV2.Templates.createNewTemplateLink": "Create new template",
|
|
1689
|
+
"creatives.containersV2.Templates.createSmsActionButton": "Create SMS",
|
|
1690
|
+
"creatives.containersV2.Templates.creativeTemplates": "Creative templates",
|
|
1691
|
+
"creatives.containersV2.Templates.creativeTemplatesDesc": "(Select only one creative)",
|
|
1692
|
+
"creatives.containersV2.Templates.creatives": "Creatives",
|
|
1693
|
+
"creatives.containersV2.Templates.creativesTemplatesEdit": "Edit",
|
|
1694
|
+
"creatives.containersV2.Templates.creativesTemplatesSave": "Done",
|
|
1695
|
+
"creatives.containersV2.Templates.deleteButton": "Delete",
|
|
1696
|
+
"creatives.containersV2.Templates.deletedSuccssfully": "Template deleted successfully",
|
|
1697
|
+
"creatives.containersV2.Templates.deletingTemplate": "Deleting template...",
|
|
1698
|
+
"creatives.containersV2.Templates.deletionFailed": "Template deletion failed",
|
|
1699
|
+
"creatives.containersV2.Templates.duplicateButton": "Duplicate",
|
|
1700
|
+
"creatives.containersV2.Templates.duplicatingTemplate": "Duplicating template...",
|
|
1701
|
+
"creatives.containersV2.Templates.ebillHeader": "Ebill",
|
|
1702
|
+
"creatives.containersV2.Templates.ebillPreview": "Ebill preview",
|
|
1703
|
+
"creatives.containersV2.Templates.editButton": "Edit",
|
|
1704
|
+
"creatives.containersV2.Templates.editMessageContent": "Edit message content",
|
|
1705
|
+
"creatives.containersV2.Templates.emailHeader": "Email",
|
|
1706
|
+
"creatives.containersV2.Templates.emailPreview": "Email preview",
|
|
1707
|
+
"creatives.containersV2.Templates.emailTitleIllustartion": "Create an email {template}",
|
|
1708
|
+
"creatives.containersV2.Templates.gettingAllTemplates": "Getting all templates...",
|
|
1709
|
+
"creatives.containersV2.Templates.header": "This is Templates container !",
|
|
1710
|
+
"creatives.containersV2.Templates.imageCarouselTemplate": "Card message",
|
|
1711
|
+
"creatives.containersV2.Templates.imageMapTemplate": "Rich message",
|
|
1712
|
+
"creatives.containersV2.Templates.imageMapVideoTemplate": "Rich video message",
|
|
1713
|
+
"creatives.containersV2.Templates.imageTemplate": "Image",
|
|
1714
|
+
"creatives.containersV2.Templates.invalidUploadFileError": "File cannot be uploaded. Please select another file with valid file format.",
|
|
1715
|
+
"creatives.containersV2.Templates.layoutSelection": "Select layout",
|
|
1716
|
+
"creatives.containersV2.Templates.lineAccount": "Line account",
|
|
1717
|
+
"creatives.containersV2.Templates.lineHeader": "Line",
|
|
1718
|
+
"creatives.containersV2.Templates.mapTemplate": "Map template",
|
|
1719
|
+
"creatives.containersV2.Templates.mapTemplates": "Map templates",
|
|
1720
|
+
"creatives.containersV2.Templates.mobilepushAccount": "Mobilepush account",
|
|
1721
|
+
"creatives.containersV2.Templates.mobilepushHeader": "Mobile Push",
|
|
1722
|
+
"creatives.containersV2.Templates.mostRecentOption": "Most recent",
|
|
1723
|
+
"creatives.containersV2.Templates.newEmailTemplate": "New email {template}",
|
|
1724
|
+
"creatives.containersV2.Templates.newNotificationTemplate": "New notification {template}",
|
|
1725
|
+
"creatives.containersV2.Templates.newRCSTemplate": "New RCS {template}",
|
|
1726
|
+
"creatives.containersV2.Templates.newSMSTemplate": "New SMS {template}",
|
|
1727
|
+
"creatives.containersV2.Templates.newTemplate": "New template",
|
|
1728
|
+
"creatives.containersV2.Templates.newWhatsappTemplate": "Add new Whatsapp {template}",
|
|
1729
|
+
"creatives.containersV2.Templates.noAccountMessage": "Please select an account to proceed",
|
|
1730
|
+
"creatives.containersV2.Templates.noAccountsPresent": "Push notifications are not setup for your brand",
|
|
1731
|
+
"creatives.containersV2.Templates.noAccountsPresentFacebook": "Please setup the Facebook account & Facebook page to start creating content in Capillary's FB content creator.",
|
|
1732
|
+
"creatives.containersV2.Templates.noAccountsPresentLine": "Line accounts are not setup for your brand",
|
|
1733
|
+
"creatives.containersV2.Templates.noAccountsPresentViber": "Viber accounts are not setup for your brand",
|
|
1734
|
+
"creatives.containersV2.Templates.noAccountsPresentWeChat": "Wechat accounts are not setup for your brand",
|
|
1735
|
+
"creatives.containersV2.Templates.noAccountsPresentWhatsapp": "Whatsapp accounts are not setup for your brand",
|
|
1736
|
+
"creatives.containersV2.Templates.noApprovedWhatsappTemplatesDesc": "Please try creating a new template, once it is approved by Whatsapp it will be available here",
|
|
1737
|
+
"creatives.containersV2.Templates.noApprovedWhatsappTemplatesTitle": "Sorry, we couldn’t find any approved templates",
|
|
1738
|
+
"creatives.containersV2.Templates.noFilteredWhatsappTemplatesDesc": "Please try searching with another term or apply different filter",
|
|
1739
|
+
"creatives.containersV2.Templates.noFilteredWhatsappTemplatesTitle": "Sorry, we couldn’t find any matches",
|
|
1740
|
+
"creatives.containersV2.Templates.noTemplatesFound": "No templates found",
|
|
1741
|
+
"creatives.containersV2.Templates.noTemplatesMessage": "No templates available",
|
|
1742
|
+
"creatives.containersV2.Templates.preview": "Preview",
|
|
1743
|
+
"creatives.containersV2.Templates.previewButton": "Preview",
|
|
1744
|
+
"creatives.containersV2.Templates.previewGenerateText": "Preview is being generated...",
|
|
1745
|
+
"creatives.containersV2.Templates.promotional": "Promotional",
|
|
1746
|
+
"creatives.containersV2.Templates.pushTitleIllustartion": "Create a mobile push notification {template}",
|
|
1747
|
+
"creatives.containersV2.Templates.rcsDescIllustartion": "These templates can be reused when creating a new message content",
|
|
1748
|
+
"creatives.containersV2.Templates.rcsDltIllustrationDesc": "Please try creating a new DLT template in SMS section, once it is created, it will be available here",
|
|
1749
|
+
"creatives.containersV2.Templates.rcsDltIllustrationTitle": "Sorry, we couldn’t find any DLT templates",
|
|
1750
|
+
"creatives.containersV2.Templates.rcsTitleIllustartion": "Add new RCS creatives {template}",
|
|
1751
|
+
"creatives.containersV2.Templates.richMediaTemplates": "Rich media templates",
|
|
1752
|
+
"creatives.containersV2.Templates.searchText": "Search",
|
|
1753
|
+
"creatives.containersV2.Templates.selectAccount": "Select account",
|
|
1754
|
+
"creatives.containersV2.Templates.selectButton": "Select",
|
|
1755
|
+
"creatives.containersV2.Templates.selectDefaultButton": "Select",
|
|
1756
|
+
"creatives.containersV2.Templates.selectSmsHeader": "Select SMS template",
|
|
1757
|
+
"creatives.containersV2.Templates.selectWechatHeader": "Select WECHAT template",
|
|
1758
|
+
"creatives.containersV2.Templates.serviceExplicit": "Service explicit",
|
|
1759
|
+
"creatives.containersV2.Templates.serviceImplicit": "Service implicit",
|
|
1760
|
+
"creatives.containersV2.Templates.smsChannelTemplatesHeader": "SMS templates",
|
|
1761
|
+
"creatives.containersV2.Templates.smsHeader": "SMS",
|
|
1762
|
+
"creatives.containersV2.Templates.smsTitleIllustartion": "Create an SMS {template}",
|
|
1763
|
+
"creatives.containersV2.Templates.somethingWentWrong": "Something went wrong!!",
|
|
1764
|
+
"creatives.containersV2.Templates.sortBy": "Sort by",
|
|
1765
|
+
"creatives.containersV2.Templates.status": "Status",
|
|
1766
|
+
"creatives.containersV2.Templates.template": "template",
|
|
1767
|
+
"creatives.containersV2.Templates.templateDeleteConfirm": "Are you sure you wish to delete this template?",
|
|
1768
|
+
"creatives.containersV2.Templates.templateDeleteSuccess": "SMS template deleted successfully",
|
|
1769
|
+
"creatives.containersV2.Templates.templateDuplicateSuccess": "Template duplicated successfully",
|
|
1770
|
+
"creatives.containersV2.Templates.templateSelection": "Template selection",
|
|
1771
|
+
"creatives.containersV2.Templates.textTemplate": "Text",
|
|
1772
|
+
"creatives.containersV2.Templates.unMapButton": "Unmap",
|
|
1773
|
+
"creatives.containersV2.Templates.uploadFile": "Upload file",
|
|
1774
|
+
"creatives.containersV2.Templates.uploadTemplate": "Upload template",
|
|
1775
|
+
"creatives.containersV2.Templates.uploadedAt": "Modified",
|
|
1776
|
+
"creatives.containersV2.Templates.uploadedBy": "Uploaded by",
|
|
1777
|
+
"creatives.containersV2.Templates.uploadingFile": "Uploading file",
|
|
1778
|
+
"creatives.containersV2.Templates.useEditor": "Use editor",
|
|
1779
|
+
"creatives.containersV2.Templates.weChatRichmediaTemplate": "Richmedia template",
|
|
1780
|
+
"creatives.containersV2.Templates.wechatAccount": "Wechat account",
|
|
1781
|
+
"creatives.containersV2.Templates.wechatAccountNotConfigured": "Selected wechat account is not configured to create wechat templates",
|
|
1782
|
+
"creatives.containersV2.Templates.wechatChannelTemplatesHeader": "WECHAT templates",
|
|
1783
|
+
"creatives.containersV2.Templates.wechatHeader": "WECHAT",
|
|
1784
|
+
"creatives.containersV2.Templates.whatsappAccount": "Whatsapp account",
|
|
1785
|
+
"creatives.containersV2.Templates.whatsappDescIllustration": "These templates can be reused when creating a
|
|
1786
|
+
new message content.",
|
|
1787
|
+
"creatives.containersV2.Templates.whatsappMaxTemplates": "WhatsApp allows {maxCount} approved templates. To accommodate new approved templates either delete the existing one or reach out to Capillary POC to increase the limit.",
|
|
1788
|
+
"creatives.containersV2.Templates.whatsappOnlyApprovedTemplates": "Only \\"Approved\\" templates are available here, as you can use those templates to create a message.",
|
|
1789
|
+
"creatives.containersV2.Templates.whatsappOverview": "Overview",
|
|
1790
|
+
"creatives.containersV2.Templates.whatsappTitleIllustration": "Add a new Whatsapp creative {template}",
|
|
1791
|
+
"creatives.containersV2.Templates.yesText": "Yes, delete",
|
|
1792
|
+
"creatives.containersV2.Templates.zipUploadFailed": "Failed to upload zip file",
|
|
1607
1793
|
"creatives.containersV2.TemplatesV2.FTP": "FTP",
|
|
1608
1794
|
"creatives.containersV2.TemplatesV2.callTask": "Call Task",
|
|
1609
1795
|
"creatives.containersV2.TemplatesV2.creatives": "Creatives",
|
|
@@ -1672,6 +1858,8 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1672
1858
|
"creatives.containersV2.Whatsapp.alertUpdate": "Alert update",
|
|
1673
1859
|
"creatives.containersV2.Whatsapp.alertUpdateTooltip": "Send important updates or news to customers.",
|
|
1674
1860
|
"creatives.containersV2.Whatsapp.approved": "Approved",
|
|
1861
|
+
"creatives.containersV2.Whatsapp.transactional": "Transactional",
|
|
1862
|
+
"creatives.containersV2.Whatsapp.transactionalTooltip": "Send account updates, order updates, alerts, and more to share important information.",
|
|
1675
1863
|
"creatives.containersV2.addLabels": "Add labels",
|
|
1676
1864
|
"creatives.containersV2.appName": "App Name",
|
|
1677
1865
|
"creatives.containersV2.applyNow": "Apply now",
|
|
@@ -1764,6 +1952,7 @@ exports[`<Cap /> should render its children 1`] = `
|
|
|
1764
1952
|
"creatives.containersV2.richMedia.Create.wechatTitle": "Title",
|
|
1765
1953
|
"creatives.containersV2.richMedia.Create.wrongFormatFile": "Wrong file upoaded. Please upload image file",
|
|
1766
1954
|
"creatives.containersV2.richMedia.Create.wrongUrl": "Enter correct URL",
|
|
1955
|
+
"creatives.containersV2.save": "Save",
|
|
1767
1956
|
"creatives.containersV2.shopNow": "Shop Now",
|
|
1768
1957
|
"creatives.containersV2.signUp": "Sign Up",
|
|
1769
1958
|
"creatives.containersV2.subscribe": "Subscribe",
|
|
@@ -12,6 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import { ConfigProvider } from 'antd';
|
|
13
13
|
import enUS from 'antd/es/locale-provider/en_US';
|
|
14
14
|
import zhCN from 'antd/es/locale-provider/zh_CN';
|
|
15
|
+
import jaJP from 'antd/es/locale-provider/ja_JP';
|
|
15
16
|
import { connect } from 'react-redux';
|
|
16
17
|
import { createSelector } from 'reselect';
|
|
17
18
|
import { IntlProvider } from 'react-intl';
|
|
@@ -25,6 +26,7 @@ export class LanguageProvider extends React.PureComponent { // eslint-disable-li
|
|
|
25
26
|
'zh-cn': zhCN,
|
|
26
27
|
'en-US': enUS,
|
|
27
28
|
'zh': zhCN,
|
|
29
|
+
'ja-JP': jaJP,
|
|
28
30
|
};
|
|
29
31
|
const jLocale = localStorage.getItem('jlocale') || 'en';
|
|
30
32
|
moment.locale(jLocale);
|
|
@@ -18,6 +18,7 @@ const messages = defineMessages({
|
|
|
18
18
|
});
|
|
19
19
|
jest.mock('antd/es/locale-provider/en_US', () => 'enUS');
|
|
20
20
|
jest.mock('antd/es/locale-provider/zh_CN', () => 'zhCN');
|
|
21
|
+
jest.mock('antd/es/locale-provider/ja_JP', () => 'jaJP');
|
|
21
22
|
|
|
22
23
|
describe('<LanguageProvider />', () => {
|
|
23
24
|
it('should render its children', () => {
|
package/i18n.js
CHANGED
|
@@ -7,19 +7,23 @@
|
|
|
7
7
|
const addLocaleData = require('react-intl').addLocaleData;
|
|
8
8
|
const enLocaleData = require('react-intl/locale-data/en');
|
|
9
9
|
const zhLocaleData = require('react-intl/locale-data/zh');
|
|
10
|
+
const jaLocaleData = require('react-intl/locale-data/ja');
|
|
10
11
|
|
|
11
12
|
const enTranslationMessages = require('./translations/en.json');
|
|
12
13
|
const zhTranslationMessages = require('./translations/zh.json');
|
|
14
|
+
const jaTranslationMessages = require('./translations/ja-JP.json');
|
|
13
15
|
|
|
14
16
|
const DEFAULT_LOCALE = 'en';
|
|
15
17
|
|
|
16
18
|
const appLocales = [
|
|
17
19
|
'en',
|
|
18
20
|
'zh',
|
|
21
|
+
'ja-JP',
|
|
19
22
|
];
|
|
20
23
|
|
|
21
24
|
addLocaleData(enLocaleData);
|
|
22
25
|
addLocaleData(zhLocaleData);
|
|
26
|
+
addLocaleData(jaLocaleData);
|
|
23
27
|
|
|
24
28
|
const formatTranslationMessages = (locale, messages) => {
|
|
25
29
|
const defaultFormattedMessages = locale !== DEFAULT_LOCALE
|
|
@@ -35,8 +39,9 @@ const formatTranslationMessages = (locale, messages) => {
|
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
const translationMessages = {
|
|
38
|
-
en: formatTranslationMessages('en', enTranslationMessages),
|
|
39
|
-
zh: formatTranslationMessages('zh', zhTranslationMessages),
|
|
42
|
+
'en': formatTranslationMessages('en', enTranslationMessages),
|
|
43
|
+
'zh': formatTranslationMessages('zh', zhTranslationMessages),
|
|
44
|
+
'ja-JP': formatTranslationMessages('ja-JP', jaTranslationMessages),
|
|
40
45
|
};
|
|
41
46
|
|
|
42
47
|
|
package/package.json
CHANGED
package/reducers.js
CHANGED
|
@@ -20,6 +20,7 @@ import tagsReducer from 'containers/TagList/reducer';
|
|
|
20
20
|
import emailReducer from 'containers/Email/reducer';
|
|
21
21
|
import ebillReducer from 'containers/Ebill/reducer';
|
|
22
22
|
import ftpReducer from 'v2Containers/FTP/reducer';
|
|
23
|
+
import galleryReducer from './v2Containers/Assets/Gallery/reducer';
|
|
23
24
|
/*
|
|
24
25
|
* routeReducer
|
|
25
26
|
*
|
|
@@ -66,6 +67,7 @@ export default function createReducer(asyncReducers) {
|
|
|
66
67
|
beeEditor: beeEditorReducer,
|
|
67
68
|
facebookPreview: CapFacebookPreviewReducer,
|
|
68
69
|
FTP: ftpReducer,
|
|
70
|
+
gallery: galleryReducer,
|
|
69
71
|
...asyncReducers,
|
|
70
72
|
});
|
|
71
73
|
}
|