@capillarytech/creatives-library 7.16.10 → 7.16.11
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/app.js +2 -2
- package/components/TemplatePreview/index.js +1 -0
- package/containers/Cap/sagas.js +4 -3
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +212 -2
- package/containers/MobilePush/Create/index.js +18 -0
- package/containers/MobilePush/Edit/index.js +18 -0
- package/package.json +1 -1
- package/services/api.js +1 -9
- package/styles/vendor/semantic/src/definitions/collections/form.less +2 -2
- package/styles/vendor/semantic/src/definitions/elements/flag.less +1 -1
- package/styles/vendor/semantic/src/definitions/elements/icon.less +0 -1
- package/styles/vendor/semantic/src/definitions/globals/site.less +1 -1
- package/translations/en.json +212 -2
- package/translations/ja-JP.json +212 -2
- package/translations/zh.json +212 -2
- package/utils/smsCharCountV2.js +0 -13
- package/utils/test-utils.js +0 -17
- package/v2Components/CapWhatsappCTA/index.js +1 -1
- package/v2Components/CapWhatsappCTA/messages.js +1 -5
- package/v2Components/FormBuilder/index.js +4 -28
- package/v2Containers/Cap/sagas.js +4 -3
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +212 -2
- package/v2Containers/CreativesContainer/constants.js +0 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -8
- package/v2Containers/LanguageProvider/index.js +3 -0
- package/v2Containers/LanguageProvider/tests/index.test.js +1 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +636 -6
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +424 -4
- package/v2Containers/Line/Container/Video/index.js +3 -3
- package/v2Containers/Line/Container/Video/messages.js +9 -0
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3604 -34
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3816 -36
- package/v2Containers/MobilePush/Create/index.js +30 -3
- package/v2Containers/MobilePush/Create/messages.js +48 -0
- package/v2Containers/MobilePush/Edit/index.js +28 -1
- package/v2Containers/MobilePush/Edit/messages.js +48 -0
- package/v2Containers/MobilePush/commonMethods.js +2 -2
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +9967 -103
- package/v2Containers/Sms/Create/actions.js +0 -9
- package/v2Containers/Sms/Create/constants.js +0 -2
- package/v2Containers/Sms/Create/index.js +0 -12
- package/v2Containers/Sms/Create/sagas.js +3 -19
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +848 -8
- package/v2Containers/SmsTrai/Edit/index.js +1 -1
- package/v2Containers/SmsTrai/Edit/messages.js +1 -1
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1696 -16
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +0 -16
- package/v2Containers/Whatsapp/index.js +3 -3
- package/v2Containers/Whatsapp/messages.js +3 -3
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +17345 -1273
- package/v2Containers/ChannelTemplates/actions.js +0 -20
- package/v2Containers/ChannelTemplates/constants.js +0 -8
- package/v2Containers/ChannelTemplates/index.js +0 -47
- package/v2Containers/ChannelTemplates/messages.js +0 -13
- package/v2Containers/ChannelTemplates/reducer.js +0 -34
- package/v2Containers/ChannelTemplates/sagas.js +0 -32
- package/v2Containers/ChannelTemplates/selectors.js +0 -25
- package/v2Containers/Sms/Create/tests/sagas.test.js +0 -82
package/utils/smsCharCountV2.js
CHANGED
|
@@ -30,19 +30,6 @@ function charToSpan(chr, coding, isUnicodeEnabled) {
|
|
|
30
30
|
return <span className={isUnicode ? 'unicode-disabled' : ''}>{isUnicode ? ` \u2588 ` : chr}</span>
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function getUHDHtml(parts, part) {
|
|
34
|
-
if (parts < 15) {
|
|
35
|
-
udh.find('.udh-total').html('0x0' + parts.toString(16));
|
|
36
|
-
} else {
|
|
37
|
-
udh.find('.udh-total').html('0x' + parts.toString(16));
|
|
38
|
-
}
|
|
39
|
-
if (part < 15) {
|
|
40
|
-
udh.find('.udh-part').html('0x0' + part.toString(16));
|
|
41
|
-
} else {
|
|
42
|
-
udh.find('.udh-part').html('0x' + part.toString(16));
|
|
43
|
-
}
|
|
44
|
-
return udh;
|
|
45
|
-
}
|
|
46
33
|
export function checkUnicode(content) {
|
|
47
34
|
var chars_arr = content.split("");
|
|
48
35
|
for (let i = 0; i < chars_arr.length; i++) {
|
package/utils/test-utils.js
CHANGED
|
@@ -42,22 +42,5 @@ function renderWithRouter(
|
|
|
42
42
|
// re-export everything
|
|
43
43
|
export * from '@testing-library/react';
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* Custom text matcher to find element if text is broken/made up of multiple elements.
|
|
47
|
-
* @param {string or regex} textMatch
|
|
48
|
-
* @returns for string entire text should match, use regex for partial matching.
|
|
49
|
-
*/
|
|
50
|
-
export function textContentMatcher(textMatch) {
|
|
51
|
-
return function (_content, node) {
|
|
52
|
-
const hasText = (n) =>
|
|
53
|
-
node.textContent === textMatch || node.textContent.match(textMatch);
|
|
54
|
-
const nodeHasText = hasText(node);
|
|
55
|
-
const childrenDontHaveText = Array.from(n?.children || []).every(
|
|
56
|
-
(child) => !hasText(child),
|
|
57
|
-
);
|
|
58
|
-
return nodeHasText && childrenDontHaveText;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
45
|
// override render method
|
|
63
46
|
export { render, renderWithRouter };
|
|
@@ -385,7 +385,7 @@ export const CapWhatsappCTA = (props) => {
|
|
|
385
385
|
}}
|
|
386
386
|
autoAdjustOverflow
|
|
387
387
|
placement="right"
|
|
388
|
-
title={formatMessage(messages.dynamicUrlTooltip)}
|
|
388
|
+
title={formatMessage(messages.dynamicUrlTooltip, { one: '{{1}}' })}
|
|
389
389
|
/>
|
|
390
390
|
)}
|
|
391
391
|
</CapHeading>
|
|
@@ -82,7 +82,7 @@ export default defineMessages({
|
|
|
82
82
|
dynamicUrlTooltip: {
|
|
83
83
|
id: `${prefix}.dynamicUrlTooltip`,
|
|
84
84
|
defaultMessage:
|
|
85
|
-
'Only one variable can be added to a URL. No need to add {
|
|
85
|
+
'Only one variable can be added to a URL. No need to add {one} to the end of the URL',
|
|
86
86
|
},
|
|
87
87
|
staticUrlWithVarErrorMessage: {
|
|
88
88
|
id: `${prefix}.staticUrlWithVarErrorMessage`,
|
|
@@ -92,10 +92,6 @@ export default defineMessages({
|
|
|
92
92
|
id: `${prefix}.dynamicUrlWithMoreVarErrorMessage`,
|
|
93
93
|
defaultMessage: 'Button with url type as dynamic can have only 1 variable',
|
|
94
94
|
},
|
|
95
|
-
dynamicUrlUnknownVars: {
|
|
96
|
-
id: `${prefix}.dynamicUrlUnknownVars`,
|
|
97
|
-
defaultMessage: 'Valid variable is {{1}}',
|
|
98
|
-
},
|
|
99
95
|
useTwoBracketsOnly: {
|
|
100
96
|
id: `${prefix}.useTwoBracketsOnly`,
|
|
101
97
|
defaultMessage: 'Use two brackets on each side to declare a variable',
|
|
@@ -11,11 +11,9 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import _ from 'lodash';
|
|
13
13
|
import { Tabs, Table, Modal} from 'antd';
|
|
14
|
-
import {
|
|
15
|
-
import { CapSpin, CapDrawer, CapButton, CapInput, CapPopover, CapImage, CapCheckbox, CapRadio, CapSelect, CapTable, CapRow, CapColumn, CapNotification, CapUploader, CapHeading, CapIcon, CapTooltip, CapAiSuggestions} from '@capillarytech/cap-ui-library';
|
|
14
|
+
import { CapSpin, CapDrawer, CapButton, CapInput, CapPopover, CapImage, CapCheckbox, CapRadio, CapSelect, CapTable, CapRow, CapColumn, CapNotification, CapUploader, CapHeading, CapIcon, CapTooltip} from '@capillarytech/cap-ui-library';
|
|
16
15
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
17
16
|
import LabelHOC from '@capillarytech/cap-ui-library/assets/HOCs/ComponentWithLabelHOC';
|
|
18
|
-
import { createStructuredSelector } from 'reselect';
|
|
19
17
|
import { CAP_SPACE_12, CAP_SPACE_08, FONT_COLOR_05, FONT_COLOR_04 } from '@capillarytech/cap-ui-library/styled/variables';
|
|
20
18
|
import TemplatePreview from '../TemplatePreview';
|
|
21
19
|
import TagList from '../../v2Containers/TagList';
|
|
@@ -26,10 +24,9 @@ import EDMEditor from "../Edmeditor";
|
|
|
26
24
|
import BeeEditor from '../../v2Containers/BeeEditor';
|
|
27
25
|
import CustomPopOver from '../CustomPopOver';
|
|
28
26
|
import messages from './messages';
|
|
29
|
-
import { selectCurrentOrgDetails } from "../../v2Containers/Cap/selectors";
|
|
30
27
|
import './_formBuilder.scss';
|
|
31
28
|
import {updateCharCount, checkUnicode} from "../../utils/smsCharCountV2";
|
|
32
|
-
import { SMS, LINE
|
|
29
|
+
import { SMS, LINE } from '../../v2Containers/CreativesContainer/constants';
|
|
33
30
|
import { validateIfTagClosed } from '../../utils/tagValidations';
|
|
34
31
|
import globalMessages from '../../v2Containers/Cap/messages';
|
|
35
32
|
import { convert } from 'html-to-text';
|
|
@@ -2281,12 +2278,6 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
2281
2278
|
const messageContent = isVersionEnable ? formData[`${currentTab - 1}`][val.id] : formData[val.id];
|
|
2282
2279
|
const { MISSING_TAG_ERROR, UNSUPPORTED_TAG_ERROR, TAG_BRACKET_COUNT_MISMATCH_ERROR } = errorMessageForTags;
|
|
2283
2280
|
const { formatMessage } = this.props.intl;
|
|
2284
|
-
|
|
2285
|
-
const { accessibleFeatures = [] } = this.props.currentOrgDetails || {};
|
|
2286
|
-
const hasAiSuggestionsEnabled = accessibleFeatures.includes(
|
|
2287
|
-
ENABLE_AI_SUGGESTIONS
|
|
2288
|
-
);
|
|
2289
|
-
|
|
2290
2281
|
let errorMessageText = false;
|
|
2291
2282
|
switch (errorType) {
|
|
2292
2283
|
case MISSING_TAG_ERROR:
|
|
@@ -2322,16 +2313,6 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
2322
2313
|
disabled={val.disabled}
|
|
2323
2314
|
cols={cols}
|
|
2324
2315
|
/>
|
|
2325
|
-
{this.props.schema.channel === "SMS" && this.props.fetchAiSuggestions && hasAiSuggestionsEnabled && (
|
|
2326
|
-
<CapAiSuggestions
|
|
2327
|
-
style={{ bottom: "1rem" }}
|
|
2328
|
-
text={messageContent || ""}
|
|
2329
|
-
setText={(x) => {
|
|
2330
|
-
this.updateFormData(x, val);
|
|
2331
|
-
}}
|
|
2332
|
-
getCompletions={this.props.fetchAiSuggestions}
|
|
2333
|
-
/>
|
|
2334
|
-
)}
|
|
2335
2316
|
</CapColumn>
|
|
2336
2317
|
);
|
|
2337
2318
|
}
|
|
@@ -3636,12 +3617,7 @@ FormBuilder.propTypes = {
|
|
|
3636
3617
|
setDrawerVisibility: PropTypes.bool,
|
|
3637
3618
|
capDrawerContent: PropTypes.array,
|
|
3638
3619
|
isFullMode: PropTypes.bool,
|
|
3639
|
-
fetchAiSuggestions: PropTypes.func,
|
|
3640
|
-
currentOrgDetails: PropTypes.object,
|
|
3641
|
-
};
|
|
3642
3620
|
|
|
3643
|
-
|
|
3644
|
-
currentOrgDetails: selectCurrentOrgDetails(),
|
|
3645
|
-
});
|
|
3621
|
+
};
|
|
3646
3622
|
|
|
3647
|
-
export default
|
|
3623
|
+
export default injectIntl(FormBuilder);
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '../../v2Containers/App/constants';
|
|
14
14
|
// import {makeSelectOrgId} from './selectors';
|
|
15
15
|
|
|
16
|
-
function* authorize(user) {
|
|
16
|
+
export function* authorize(user) {
|
|
17
17
|
try {
|
|
18
18
|
const res = yield call(Api.authorize, user);
|
|
19
19
|
yield call(LocalStorage.saveItem, 'token', res.token);
|
|
@@ -41,13 +41,14 @@ function* switchOrg({orgID}) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function* loginFlow() {
|
|
45
|
-
|
|
44
|
+
export function* loginFlow() {
|
|
45
|
+
let condition = true;
|
|
46
46
|
while (condition) {
|
|
47
47
|
const { user } = yield take(types.LOGIN_REQUEST);
|
|
48
48
|
const task = yield fork(authorize, user);
|
|
49
49
|
const action = yield take([types.LOGOUT_REQUEST_V2, types.LOGIN_FAILURE]);
|
|
50
50
|
if (action.type === types.LOGOUT_REQUEST_V2) {
|
|
51
|
+
condition = false;
|
|
51
52
|
yield cancel(task);
|
|
52
53
|
}
|
|
53
54
|
// yield call(LocalStorage.clearItem, 'token');
|
|
@@ -123,6 +123,21 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
123
123
|
"app.v2containers.SmsTrai.Create.typeAliasErrorDescription": "Please include mandatory field type. It can be {typeAliases}.",
|
|
124
124
|
"app.v2containers.SmsTrai.Create.uploadFile": "Upload file",
|
|
125
125
|
"app.v2containers.SmsTrai.Create.uploadInstructions": "Upload Instructions",
|
|
126
|
+
"app.v2containers.SmsTrai.Edit.addLabels": "Add labels",
|
|
127
|
+
"app.v2containers.SmsTrai.Edit.cancelButtonLabel": "Cancel",
|
|
128
|
+
"app.v2containers.SmsTrai.Edit.inputplaceHolderText": "Add labels or text or combination of both",
|
|
129
|
+
"app.v2containers.SmsTrai.Edit.msgLengthNote": "Only 30 characters are allowed per variable {var} field. In case the field resolves to more than 30 characters the message is bound to fail. Hence will not be sent by the Capillary system.",
|
|
130
|
+
"app.v2containers.SmsTrai.Edit.saveButtonLabel": "Save",
|
|
131
|
+
"app.v2containers.SmsTrai.Edit.senderIdlabel": "Sender ID",
|
|
132
|
+
"app.v2containers.SmsTrai.Edit.smsEditNotification": "Sms template updated successfully",
|
|
133
|
+
"app.v2containers.SmsTrai.Edit.templateLabel": "Template",
|
|
134
|
+
"app.v2containers.SmsTrai.Edit.textAreaCounts": "{varCounts} variable{varCounts, plural, one {} other {s}} {var}: max. {charCounts} characters",
|
|
135
|
+
"app.v2containers.SmsTrai.Edit.textAreaError": "Template cannot be empty",
|
|
136
|
+
"app.v2containers.SmsTrai.Edit.totalCharacters": "{smsCount} SMS ({number} characters)",
|
|
137
|
+
"app.v2containers.SmsTrai.Edit.traiEditSeperator": "|",
|
|
138
|
+
"app.v2containers.SmsTrai.Edit.traiEditTitle": "Message",
|
|
139
|
+
"app.v2containers.SmsTrai.Edit.unicodeLabel": "Allow unicode characters",
|
|
140
|
+
"app.v2containers.SmsTrai.Edit.unsupportedTagsValidationError": "Unsupported tags: {unsupportedTags}. Please remove them from this message.",
|
|
126
141
|
"creatives.components.AccessForbidden.forbiddenDesc": "This page access has not been provided to you.",
|
|
127
142
|
"creatives.components.AccessForbidden.forbiddenHeader": "Access Forbidden",
|
|
128
143
|
"creatives.components.BreadCrumbs.header": "This is the BreadCrumbs component !",
|
|
@@ -251,6 +266,31 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
251
266
|
"creatives.componentsV2.CapTagList.numberOfDaysBeforeExpiry": "Number of days before expiry",
|
|
252
267
|
"creatives.componentsV2.CapTagList.outbound": "Outbound",
|
|
253
268
|
"creatives.componentsV2.CapTagList.search": "Search",
|
|
269
|
+
"creatives.componentsV2.CapWhatsappCTA.addButton": "Add button",
|
|
270
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaAddDisabled": "Please save the first button before proceeding to create second button",
|
|
271
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaButtonErrorMessage": "Newlines, Emojis, or Special characters are not allowed",
|
|
272
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaButtonText": "Button text",
|
|
273
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaButtonTextPlaceholder": "Enter button text",
|
|
274
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaButtonTextTooltip": "Use this to name the button. We would recommend not to use special characters for the button text.",
|
|
275
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaDynamicPlaceholder": "Enter URL, variable is added by default",
|
|
276
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaOptionDisabledTooltip": "This type of button can only be added once",
|
|
277
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaPhoneNo": "Phone number",
|
|
278
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaPhoneNoPlaceholder": "Enter phone number",
|
|
279
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaSaveDisabled": "Please complete the above fields to enable button",
|
|
280
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaStaticPlaceholder": "Enter website URL",
|
|
281
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaType": "Type of action",
|
|
282
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsite": "Website",
|
|
283
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsiteType": "URL Type",
|
|
284
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsiteTypeDynamic": "Dynamic",
|
|
285
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsiteTypeStatic": "Static",
|
|
286
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsiteUrl": "Website URL",
|
|
287
|
+
"creatives.componentsV2.CapWhatsappCTA.ctaWebsiteUrlErrorMessage": "URL is not valid",
|
|
288
|
+
"creatives.componentsV2.CapWhatsappCTA.dynamicUrlTooltip": "Only one variable can be added to a URL. No need to add {one} to the end of the URL",
|
|
289
|
+
"creatives.componentsV2.CapWhatsappCTA.dynamicUrlWithMoreVarErrorMessage": "Button with url type as dynamic can have only 1 variable",
|
|
290
|
+
"creatives.componentsV2.CapWhatsappCTA.staticUrlWithVarErrorMessage": "Button with url type as static cannot contain variables",
|
|
291
|
+
"creatives.componentsV2.CapWhatsappCTA.useTwoBracketsOnly": "Use two brackets on each side to declare a variable",
|
|
292
|
+
"creatives.componentsV2.CapWhatsappCTA.whatsappCtaTagListLabel": "Add URL label",
|
|
293
|
+
"creatives.componentsV2.CapWhatsappCTA.whatsappCtaTagListRevert": "Reset website URL label to default value",
|
|
254
294
|
"creatives.componentsV2.Ckeditor.header": "This is the Ckeditor component !",
|
|
255
295
|
"creatives.componentsV2.CmsTemplatesComponent.header": "This is the CmsTemplatesComponent component !",
|
|
256
296
|
"creatives.componentsV2.CmsTemplatesComponent.select": "Select",
|
|
@@ -956,6 +996,7 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
956
996
|
"creatives.containersV2.Cap.ebill": "Ebill",
|
|
957
997
|
"creatives.containersV2.Cap.email": "Email",
|
|
958
998
|
"creatives.containersV2.Cap.gallery": "Gallery",
|
|
999
|
+
"creatives.containersV2.Cap.journeys": "Journeys",
|
|
959
1000
|
"creatives.containersV2.Cap.loyalty": "Loyalty",
|
|
960
1001
|
"creatives.containersV2.Cap.memberCare": "Member Care",
|
|
961
1002
|
"creatives.containersV2.Cap.sms": "SMS",
|
|
@@ -996,7 +1037,6 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
996
1037
|
"creatives.containersV2.CapFacebookPreview.suggestedVideoMobile": "Suggested video mobile",
|
|
997
1038
|
"creatives.containersV2.CapFacebookPreview.videoNotePreview": "Facebook may take time to upload the video. Please try Refreshing.",
|
|
998
1039
|
"creatives.containersV2.CapFacebookPreview.watchFeedMobile": "Watch feed mobile",
|
|
999
|
-
"creatives.containersV2.ChannelTemplates.header": "This is ChannelTemplates container !",
|
|
1000
1040
|
"creatives.containersV2.Create.addLabel": "Add label",
|
|
1001
1041
|
"creatives.containersV2.Create.alertMessage": "Alert",
|
|
1002
1042
|
"creatives.containersV2.Create.cancelButton": "Cancel",
|
|
@@ -1477,11 +1517,13 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
1477
1517
|
"creatives.containersV2.LineVideo.actionLabelTitle": "Action button label",
|
|
1478
1518
|
"creatives.containersV2.LineVideo.actionUrlPlaceholder": "Enter URL",
|
|
1479
1519
|
"creatives.containersV2.LineVideo.actionUrlTitle": "Link Url",
|
|
1520
|
+
"creatives.containersV2.LineVideo.display": "Display",
|
|
1480
1521
|
"creatives.containersV2.LineVideo.dragAndDrop": "Drag and drop video here",
|
|
1481
1522
|
"creatives.containersV2.LineVideo.emptyAltTextErrorMessage": "Title can not be empty",
|
|
1482
1523
|
"creatives.containersV2.LineVideo.emptyLabelErrorMessage": "Action label can not be more empty",
|
|
1483
1524
|
"creatives.containersV2.LineVideo.emptyTitleErrorMessage": "Template title can not be empty",
|
|
1484
1525
|
"creatives.containersV2.LineVideo.emptyUrlErrorMessage": "Action URL can not be more empty",
|
|
1526
|
+
"creatives.containersV2.LineVideo.hide": "Hide",
|
|
1485
1527
|
"creatives.containersV2.LineVideo.imageGallery": "Gallery",
|
|
1486
1528
|
"creatives.containersV2.LineVideo.imageReUpload": "Re upload",
|
|
1487
1529
|
"creatives.containersV2.LineVideo.inValidUrlErrorMessage": "Action url is not valid",
|
|
@@ -1525,19 +1567,29 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
1525
1567
|
"creatives.containersV2.MobilePush.Create.Image": "Image",
|
|
1526
1568
|
"creatives.containersV2.MobilePush.Create.ImageUploadLabel": "Upload image",
|
|
1527
1569
|
"creatives.containersV2.MobilePush.Create.Tags": "Tags",
|
|
1570
|
+
"creatives.containersV2.MobilePush.Create.aPageWithMobileApp": "A page within mobile app",
|
|
1528
1571
|
"creatives.containersV2.MobilePush.Create.accountId": "Account id",
|
|
1572
|
+
"creatives.containersV2.MobilePush.Create.addActionButtonsToNotification": "Add action buttons to notification",
|
|
1573
|
+
"creatives.containersV2.MobilePush.Create.addActionLinkToContent": "Add action link to content",
|
|
1574
|
+
"creatives.containersV2.MobilePush.Create.addActionLinkToContentDescription": "Add a hyperlink of the page which customer will be directed to",
|
|
1529
1575
|
"creatives.containersV2.MobilePush.Create.addAnotherCTA": "Add another CTA",
|
|
1576
|
+
"creatives.containersV2.MobilePush.Create.addPrimaryButtonToNotification": "Add primary button to notification",
|
|
1530
1577
|
"creatives.containersV2.MobilePush.Create.addPrimaryCTA": "Add primary CTA",
|
|
1578
|
+
"creatives.containersV2.MobilePush.Create.addSecondaryButtonToNotification": "Add secondary button to notification",
|
|
1531
1579
|
"creatives.containersV2.MobilePush.Create.addSecondaryCTA": "Add secondary CTA",
|
|
1532
1580
|
"creatives.containersV2.MobilePush.Create.alertMessage": "Alert",
|
|
1581
|
+
"creatives.containersV2.MobilePush.Create.anExternalWebPage": "An external web page",
|
|
1533
1582
|
"creatives.containersV2.MobilePush.Create.androidNotConfigured": "Android template is not configured. Save without Android template",
|
|
1534
1583
|
"creatives.containersV2.MobilePush.Create.button1": "Button 1",
|
|
1535
1584
|
"creatives.containersV2.MobilePush.Create.button2": "Button 2",
|
|
1585
|
+
"creatives.containersV2.MobilePush.Create.buttonLabel": "Button label",
|
|
1536
1586
|
"creatives.containersV2.MobilePush.Create.cancel": "Cancel",
|
|
1537
1587
|
"creatives.containersV2.MobilePush.Create.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
|
|
1538
1588
|
"creatives.containersV2.MobilePush.Create.change": "change",
|
|
1539
1589
|
"creatives.containersV2.MobilePush.Create.copyFromAndroid": "Copy title and content from android",
|
|
1540
1590
|
"creatives.containersV2.MobilePush.Create.copyFromIos": "Copy title and content from IOS",
|
|
1591
|
+
"creatives.containersV2.MobilePush.Create.coverImage": "Cover image",
|
|
1592
|
+
"creatives.containersV2.MobilePush.Create.coverImageDescription": "Maximum file size acceptable is 5 MB",
|
|
1541
1593
|
"creatives.containersV2.MobilePush.Create.ctaLabelCantEmpty": "CTA label cannot be empty.",
|
|
1542
1594
|
"creatives.containersV2.MobilePush.Create.deleteSecondCTAFirst": "Please delete second secondary cta first",
|
|
1543
1595
|
"creatives.containersV2.MobilePush.Create.discardChanges": "Discard changes",
|
|
@@ -1580,6 +1632,7 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
1580
1632
|
"creatives.containersV2.MobilePush.Create.templateCreatedSuccessfully": "Mobile push template created successfully",
|
|
1581
1633
|
"creatives.containersV2.MobilePush.Create.templateNameNotEmpty": "Please provide a template name",
|
|
1582
1634
|
"creatives.containersV2.MobilePush.Create.templateNotConfigured": "template not configured,",
|
|
1635
|
+
"creatives.containersV2.MobilePush.Create.thisSectionDisabledHoverText": "This section is being revamped. Till then it will remain disabled.",
|
|
1583
1636
|
"creatives.containersV2.MobilePush.Create.title": "Title",
|
|
1584
1637
|
"creatives.containersV2.MobilePush.Create.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1585
1638
|
"creatives.containersV2.MobilePush.Create.titleLabel": "Title*",
|
|
@@ -1597,19 +1650,29 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
1597
1650
|
"creatives.containersV2.MobilePush.Edit.Image": "Image",
|
|
1598
1651
|
"creatives.containersV2.MobilePush.Edit.ImageUploadLabel": "Upload image",
|
|
1599
1652
|
"creatives.containersV2.MobilePush.Edit.Tags": "Tags",
|
|
1653
|
+
"creatives.containersV2.MobilePush.Edit.aPageWithMobileApp": "A page within mobile app",
|
|
1600
1654
|
"creatives.containersV2.MobilePush.Edit.accountId": "Account id",
|
|
1655
|
+
"creatives.containersV2.MobilePush.Edit.addActionButtonsToNotification": "Add action buttons to notification",
|
|
1656
|
+
"creatives.containersV2.MobilePush.Edit.addActionLinkToContent": "Add action link to content",
|
|
1657
|
+
"creatives.containersV2.MobilePush.Edit.addActionLinkToContentDescription": "Add a hyperlink of the page which customer will be directed to",
|
|
1601
1658
|
"creatives.containersV2.MobilePush.Edit.addAnotherCTA": "Add another CTA",
|
|
1659
|
+
"creatives.containersV2.MobilePush.Edit.addPrimaryButtonToNotification": "Add primary button to notification",
|
|
1602
1660
|
"creatives.containersV2.MobilePush.Edit.addPrimaryCTA": "Add primary CTA",
|
|
1661
|
+
"creatives.containersV2.MobilePush.Edit.addSecondaryButtonToNotification": "Add secondary button to notification",
|
|
1603
1662
|
"creatives.containersV2.MobilePush.Edit.addSecondaryCTA": "Add secondary CTA",
|
|
1604
1663
|
"creatives.containersV2.MobilePush.Edit.alertMessage": "Alert",
|
|
1664
|
+
"creatives.containersV2.MobilePush.Edit.anExternalWebPage": "An external web page",
|
|
1605
1665
|
"creatives.containersV2.MobilePush.Edit.androidTemplateNotConfigured": "Android template is not configured. Continue save?",
|
|
1606
1666
|
"creatives.containersV2.MobilePush.Edit.button1": "Button 1",
|
|
1607
1667
|
"creatives.containersV2.MobilePush.Edit.button2": "Button 2",
|
|
1668
|
+
"creatives.containersV2.MobilePush.Edit.buttonLabel": "Button label",
|
|
1608
1669
|
"creatives.containersV2.MobilePush.Edit.cancel": "Cancel",
|
|
1609
1670
|
"creatives.containersV2.MobilePush.Edit.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
|
|
1610
1671
|
"creatives.containersV2.MobilePush.Edit.change": "change",
|
|
1611
1672
|
"creatives.containersV2.MobilePush.Edit.copyFromAndroid": "Copy title and content from android",
|
|
1612
1673
|
"creatives.containersV2.MobilePush.Edit.copyFromIos": "Copy title and content from IOS",
|
|
1674
|
+
"creatives.containersV2.MobilePush.Edit.coverImage": "Cover image",
|
|
1675
|
+
"creatives.containersV2.MobilePush.Edit.coverImageDescription": "Maximum file size acceptable is 5 MB",
|
|
1613
1676
|
"creatives.containersV2.MobilePush.Edit.ctaLabelCantEmpty": "CTA label cannot be empty.",
|
|
1614
1677
|
"creatives.containersV2.MobilePush.Edit.deleteSecondCTAFirst": "Please delete second Secondary cta First",
|
|
1615
1678
|
"creatives.containersV2.MobilePush.Edit.discardChanges": "Discard changes",
|
|
@@ -1652,6 +1715,7 @@ exports[`<Cap /> should render correct component 1`] = `
|
|
|
1652
1715
|
"creatives.containersV2.MobilePush.Edit.templateEditedSuccessfully": "MOBILEPUSH template edited successfully",
|
|
1653
1716
|
"creatives.containersV2.MobilePush.Edit.templateNameNotEmpty": "Please provide a template name",
|
|
1654
1717
|
"creatives.containersV2.MobilePush.Edit.templateNotConfigured": "Template not configured,",
|
|
1718
|
+
"creatives.containersV2.MobilePush.Edit.thisSectionDisabledHoverText": "This section is being revamped. Till then it will remain disabled.",
|
|
1655
1719
|
"creatives.containersV2.MobilePush.Edit.title": "Title",
|
|
1656
1720
|
"creatives.containersV2.MobilePush.Edit.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1657
1721
|
"creatives.containersV2.MobilePush.Edit.titleLabel": "Title*",
|
|
@@ -1888,11 +1952,157 @@ new message content.",
|
|
|
1888
1952
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
1889
1953
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
1890
1954
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
1955
|
+
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
1956
|
+
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
1957
|
+
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
1958
|
+
"creatives.containersV2.Whatsapp.addVar": "Add variables",
|
|
1959
|
+
"creatives.containersV2.Whatsapp.afrikaans": "Afrikaans",
|
|
1960
|
+
"creatives.containersV2.Whatsapp.albanian": "Albanian",
|
|
1891
1961
|
"creatives.containersV2.Whatsapp.alertUpdate": "Alert update",
|
|
1892
1962
|
"creatives.containersV2.Whatsapp.alertUpdateTooltip": "Send important updates or news to customers.",
|
|
1963
|
+
"creatives.containersV2.Whatsapp.appointmentUpdate": "Appointment update",
|
|
1964
|
+
"creatives.containersV2.Whatsapp.appointmentUpdateTooltip": "Send confirmations, reminders, or other updates to customers about their appointments.",
|
|
1893
1965
|
"creatives.containersV2.Whatsapp.approved": "Approved",
|
|
1966
|
+
"creatives.containersV2.Whatsapp.approvedStatusMsg": "This template has been approved",
|
|
1967
|
+
"creatives.containersV2.Whatsapp.arabic": "Arabic",
|
|
1968
|
+
"creatives.containersV2.Whatsapp.authentication": "Authentication",
|
|
1969
|
+
"creatives.containersV2.Whatsapp.authenticationTooltip": "Send codes that allow your customers to securely access their accounts.",
|
|
1970
|
+
"creatives.containersV2.Whatsapp.awaitingApproval": "Awaiting approval",
|
|
1971
|
+
"creatives.containersV2.Whatsapp.awaitingStatusDesc": "The template has been sent for approval at {date}, {time}. It takes up to 48 hrs to get approved.",
|
|
1972
|
+
"creatives.containersV2.Whatsapp.awaitingStatusMsg": "This template is awaiting approval",
|
|
1973
|
+
"creatives.containersV2.Whatsapp.azerbaijani": "Azerbaijani",
|
|
1974
|
+
"creatives.containersV2.Whatsapp.bengali": "Bengali",
|
|
1975
|
+
"creatives.containersV2.Whatsapp.btnDesc": "These will be show clickable buttons below your message.",
|
|
1976
|
+
"creatives.containersV2.Whatsapp.btnDisabledTooltip": "Please add all mandatory fields to proceed further",
|
|
1977
|
+
"creatives.containersV2.Whatsapp.btnLabel": "Buttons",
|
|
1978
|
+
"creatives.containersV2.Whatsapp.btnTypeCTA": "Call to action",
|
|
1979
|
+
"creatives.containersV2.Whatsapp.btnTypeNone": "None",
|
|
1980
|
+
"creatives.containersV2.Whatsapp.btnTypeQuickReply": "Quick reply",
|
|
1981
|
+
"creatives.containersV2.Whatsapp.bulgarian": "Bulgarian",
|
|
1982
|
+
"creatives.containersV2.Whatsapp.cancelButtonLabel": "Cancel",
|
|
1983
|
+
"creatives.containersV2.Whatsapp.catalan": "Catalan",
|
|
1984
|
+
"creatives.containersV2.Whatsapp.chineseCHN": "Chinese (CHN)",
|
|
1985
|
+
"creatives.containersV2.Whatsapp.chineseHKG": "Chinese (HKG)",
|
|
1986
|
+
"creatives.containersV2.Whatsapp.chineseTAI": "Chinese (TAI)",
|
|
1987
|
+
"creatives.containersV2.Whatsapp.croatian": "Croatian",
|
|
1988
|
+
"creatives.containersV2.Whatsapp.ctaDesc": "Create up to 2 buttons that let customers respond to your messages or take action.",
|
|
1989
|
+
"creatives.containersV2.Whatsapp.czech": "Czech",
|
|
1990
|
+
"creatives.containersV2.Whatsapp.danish": "Danish",
|
|
1991
|
+
"creatives.containersV2.Whatsapp.disabledEditTooltip": "This template is non-editable as this is {status}",
|
|
1992
|
+
"creatives.containersV2.Whatsapp.disabledEditTooltipStatus": "awaiting for approval",
|
|
1993
|
+
"creatives.containersV2.Whatsapp.disabledFeatureTooltip": "Not yet enabled. Coming soon!",
|
|
1994
|
+
"creatives.containersV2.Whatsapp.dutch": "Dutch",
|
|
1995
|
+
"creatives.containersV2.Whatsapp.emptyTemplateMessageErrorMessage": "Template message cannot be empty",
|
|
1996
|
+
"creatives.containersV2.Whatsapp.english": "English",
|
|
1997
|
+
"creatives.containersV2.Whatsapp.englishUK": "English (UK)",
|
|
1998
|
+
"creatives.containersV2.Whatsapp.englishUS": "English (US)",
|
|
1999
|
+
"creatives.containersV2.Whatsapp.estonian": "Estonian",
|
|
2000
|
+
"creatives.containersV2.Whatsapp.filipino": "Filipino",
|
|
2001
|
+
"creatives.containersV2.Whatsapp.finnish": "Finnish",
|
|
2002
|
+
"creatives.containersV2.Whatsapp.french": "French",
|
|
2003
|
+
"creatives.containersV2.Whatsapp.georgian": "Georgian",
|
|
2004
|
+
"creatives.containersV2.Whatsapp.german": "German",
|
|
2005
|
+
"creatives.containersV2.Whatsapp.greek": "Greek",
|
|
2006
|
+
"creatives.containersV2.Whatsapp.gujarati": "Gujarati",
|
|
2007
|
+
"creatives.containersV2.Whatsapp.hausa": "Hausa",
|
|
2008
|
+
"creatives.containersV2.Whatsapp.hebrew": "Hebrew",
|
|
2009
|
+
"creatives.containersV2.Whatsapp.here": "here",
|
|
2010
|
+
"creatives.containersV2.Whatsapp.hindi": "Hindi",
|
|
2011
|
+
"creatives.containersV2.Whatsapp.hungarian": "Hungarian",
|
|
2012
|
+
"creatives.containersV2.Whatsapp.indonesian": "Indonesian",
|
|
2013
|
+
"creatives.containersV2.Whatsapp.inputplaceHolderText": "{value} Add labels or text or combination of both",
|
|
2014
|
+
"creatives.containersV2.Whatsapp.invalidFormatError": "INVALID FORMAT: Placeholders or other elements were formatted incorrectly.",
|
|
2015
|
+
"creatives.containersV2.Whatsapp.irish": "Irish",
|
|
2016
|
+
"creatives.containersV2.Whatsapp.italian": "Italian",
|
|
2017
|
+
"creatives.containersV2.Whatsapp.japanese": "Japanese",
|
|
2018
|
+
"creatives.containersV2.Whatsapp.kannada": "Kannada",
|
|
2019
|
+
"creatives.containersV2.Whatsapp.kazakh": "Kazakh",
|
|
2020
|
+
"creatives.containersV2.Whatsapp.kinyarwanda": "Kinyarwanda",
|
|
2021
|
+
"creatives.containersV2.Whatsapp.korean": "Korean",
|
|
2022
|
+
"creatives.containersV2.Whatsapp.kyrgyz": "Kyrgyz (Kyrgyzstan)",
|
|
2023
|
+
"creatives.containersV2.Whatsapp.labelSeperator": "|",
|
|
2024
|
+
"creatives.containersV2.Whatsapp.languageLabel": "Language",
|
|
2025
|
+
"creatives.containersV2.Whatsapp.lao": "Lao",
|
|
2026
|
+
"creatives.containersV2.Whatsapp.latvian": "Latvian",
|
|
2027
|
+
"creatives.containersV2.Whatsapp.lithuanian": "Lithuanian",
|
|
2028
|
+
"creatives.containersV2.Whatsapp.macedonian": "Macedonian",
|
|
2029
|
+
"creatives.containersV2.Whatsapp.malay": "Malay",
|
|
2030
|
+
"creatives.containersV2.Whatsapp.malayalam": "Malayalam",
|
|
2031
|
+
"creatives.containersV2.Whatsapp.marathi": "Marathi",
|
|
2032
|
+
"creatives.containersV2.Whatsapp.marketing": "Marketing",
|
|
2033
|
+
"creatives.containersV2.Whatsapp.marketingTooltip": "Send promotional offers, product announcements, and more to increase awareness and engagement.",
|
|
2034
|
+
"creatives.containersV2.Whatsapp.mediaDocument": "Document",
|
|
2035
|
+
"creatives.containersV2.Whatsapp.mediaImage": "Image",
|
|
2036
|
+
"creatives.containersV2.Whatsapp.mediaLabel": "Media",
|
|
2037
|
+
"creatives.containersV2.Whatsapp.mediaText": "Text",
|
|
2038
|
+
"creatives.containersV2.Whatsapp.mediaVideo": "Video",
|
|
2039
|
+
"creatives.containersV2.Whatsapp.messageLanguageLabel": "Message language",
|
|
2040
|
+
"creatives.containersV2.Whatsapp.modifiedUnsubscribeText": "Click {value} to unsubscribe",
|
|
2041
|
+
"creatives.containersV2.Whatsapp.noContentBetweenVars": "Add atleast 1 character between 2 variables",
|
|
2042
|
+
"creatives.containersV2.Whatsapp.norwegian": "Norwegian",
|
|
2043
|
+
"creatives.containersV2.Whatsapp.optional": "(Optional)",
|
|
2044
|
+
"creatives.containersV2.Whatsapp.otp": "Otp",
|
|
2045
|
+
"creatives.containersV2.Whatsapp.page": "page",
|
|
2046
|
+
"creatives.containersV2.Whatsapp.pages": "pages",
|
|
2047
|
+
"creatives.containersV2.Whatsapp.paymentUpdate": "Payment update",
|
|
2048
|
+
"creatives.containersV2.Whatsapp.paymentUpdateTooltip": "Send a message to customers about their payment.",
|
|
2049
|
+
"creatives.containersV2.Whatsapp.pdf": "PDF",
|
|
2050
|
+
"creatives.containersV2.Whatsapp.persian": "Persian",
|
|
2051
|
+
"creatives.containersV2.Whatsapp.polish": "Polish",
|
|
2052
|
+
"creatives.containersV2.Whatsapp.portugueseBR": "Portuguese (BR)",
|
|
2053
|
+
"creatives.containersV2.Whatsapp.portuguesePOR": "Portuguese (POR)",
|
|
2054
|
+
"creatives.containersV2.Whatsapp.punjabi": "Punjabi",
|
|
2055
|
+
"creatives.containersV2.Whatsapp.quickReplyDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
|
|
2056
|
+
"creatives.containersV2.Whatsapp.rejected": "Rejected",
|
|
2057
|
+
"creatives.containersV2.Whatsapp.rejectedStatusMsg": "This template has been rejected",
|
|
2058
|
+
"creatives.containersV2.Whatsapp.removeMultinewlineChars": "More than two consecutive line breaks are not allowed.",
|
|
2059
|
+
"creatives.containersV2.Whatsapp.repetativeVars": "Variables cannot be repeated",
|
|
2060
|
+
"creatives.containersV2.Whatsapp.reservationUpdate": "Reservation update",
|
|
2061
|
+
"creatives.containersV2.Whatsapp.reservationUpdateTooltip": "Send confirmations, reminders, or other updates to customers about their reservations.",
|
|
2062
|
+
"creatives.containersV2.Whatsapp.romanian": "Romanian",
|
|
2063
|
+
"creatives.containersV2.Whatsapp.russian": "Russian",
|
|
2064
|
+
"creatives.containersV2.Whatsapp.select": "Select",
|
|
2065
|
+
"creatives.containersV2.Whatsapp.sendForApprovalButtonLabel": "Send for approval",
|
|
2066
|
+
"creatives.containersV2.Whatsapp.sequenceVars": "Variable name should start from {one} and it should be in sequential order",
|
|
2067
|
+
"creatives.containersV2.Whatsapp.serbian": "Serbian",
|
|
2068
|
+
"creatives.containersV2.Whatsapp.slovak": "Slovak",
|
|
2069
|
+
"creatives.containersV2.Whatsapp.slovenian": "Slovenian",
|
|
2070
|
+
"creatives.containersV2.Whatsapp.spanish": "Spanish",
|
|
2071
|
+
"creatives.containersV2.Whatsapp.spanishARG": "Spanish (ARG)",
|
|
2072
|
+
"creatives.containersV2.Whatsapp.spanishMEX": "Spanish (MEX)",
|
|
2073
|
+
"creatives.containersV2.Whatsapp.spanishSPA": "Spanish (SPA)",
|
|
2074
|
+
"creatives.containersV2.Whatsapp.swahili": "Swahili",
|
|
2075
|
+
"creatives.containersV2.Whatsapp.swedish": "Swedish",
|
|
2076
|
+
"creatives.containersV2.Whatsapp.tagContentMismatchError": "TAG CONTENT MISMATCH: The language and/or template category selected don’t match the template content.",
|
|
2077
|
+
"creatives.containersV2.Whatsapp.tamil": "Tamil",
|
|
2078
|
+
"creatives.containersV2.Whatsapp.telugu": "Telugu",
|
|
2079
|
+
"creatives.containersV2.Whatsapp.templateCategoryLabel": "Template category",
|
|
2080
|
+
"creatives.containersV2.Whatsapp.templateLanguageEnglish": "English",
|
|
2081
|
+
"creatives.containersV2.Whatsapp.templateMessageLabel": "Message",
|
|
2082
|
+
"creatives.containersV2.Whatsapp.templateMessageLength": "Characters count: {currentLength}/{maxLength}",
|
|
2083
|
+
"creatives.containersV2.Whatsapp.templateMessageLengthError": "Template message length cannot exceed 1024",
|
|
2084
|
+
"creatives.containersV2.Whatsapp.templateMessagePlaceholder": "Enter message with variable",
|
|
2085
|
+
"creatives.containersV2.Whatsapp.templateMessageTooltip": "You can write variables by adding two curly brackets before the variable name and two curly brackets after the variable name.{br}{br}Tip :{br}It looks something like this: Hi {var},{br}so 1 is the variable name here.",
|
|
2086
|
+
"creatives.containersV2.Whatsapp.templateMessageUnsubscribeText": "Click {unsubscribe} to unsubscribe",
|
|
2087
|
+
"creatives.containersV2.Whatsapp.templateNameDesc": "Must be a unique name and can only contain lowercase alphanumeric characters and underscores.",
|
|
2088
|
+
"creatives.containersV2.Whatsapp.templateNameRegexErrorMessage": "Template name can only contain lowercase alphanumeric characters and underscores",
|
|
2089
|
+
"creatives.containersV2.Whatsapp.templateNameTooltip": "Tip : Use a name that helps WhatsApp's reviewer understand the purpose of your message, for example \\"order_delivery\\" rather than \\"template_1\\"",
|
|
2090
|
+
"creatives.containersV2.Whatsapp.thai": "Thai",
|
|
1894
2091
|
"creatives.containersV2.Whatsapp.transactional": "Transactional",
|
|
1895
|
-
"creatives.containersV2.Whatsapp.
|
|
2092
|
+
"creatives.containersV2.Whatsapp.turkish": "Turkish",
|
|
2093
|
+
"creatives.containersV2.Whatsapp.ukrainian": "Ukrainian",
|
|
2094
|
+
"creatives.containersV2.Whatsapp.unknownVars": "Variable name should be numeric value from {one} to {nineteen}",
|
|
2095
|
+
"creatives.containersV2.Whatsapp.unsubscribeTextTooltipCreateFlow": "To enable the checkbox, reduce the message character count to 988",
|
|
2096
|
+
"creatives.containersV2.Whatsapp.unsubscribeTextTooltipEditFlow": "This is non-editable",
|
|
2097
|
+
"creatives.containersV2.Whatsapp.urdu": "Urdu",
|
|
2098
|
+
"creatives.containersV2.Whatsapp.useTwoBracketsOnly": "Use two brackets on each side to declare a variable",
|
|
2099
|
+
"creatives.containersV2.Whatsapp.utility": "Utility",
|
|
2100
|
+
"creatives.containersV2.Whatsapp.utilityTooltip": "Send account updates, order updates, alerts, and more to share important information.",
|
|
2101
|
+
"creatives.containersV2.Whatsapp.uzbek": "Uzbek",
|
|
2102
|
+
"creatives.containersV2.Whatsapp.videoErrorMessage": "Please upload the video with allowed file extension, size, dimension and aspect ratio",
|
|
2103
|
+
"creatives.containersV2.Whatsapp.vietnamese": "Vietnamese",
|
|
2104
|
+
"creatives.containersV2.Whatsapp.whatsappCreateNotification": "{name} has been sent for approval",
|
|
2105
|
+
"creatives.containersV2.Whatsapp.zulu": "Zulu",
|
|
1896
2106
|
"creatives.containersV2.addLabels": "Add labels",
|
|
1897
2107
|
"creatives.containersV2.appName": "App Name",
|
|
1898
2108
|
"creatives.containersV2.applyNow": "Apply now",
|
|
@@ -23,5 +23,3 @@ export const SHOW_CONTANER_LOADER = "app/CreativesContainer/SHOW_CONTANER_LOADER
|
|
|
23
23
|
export const HIDE_CONTAINER_LOADER = "app/CreativesContainer/HIDE_CONTAINER_LOADER";
|
|
24
24
|
|
|
25
25
|
export const WHATSAPP_HELP_DOC_LINK = "https://docs.capillarytech.com/docs/create-whatsapp-template";
|
|
26
|
-
|
|
27
|
-
export const ENABLE_AI_SUGGESTIONS = "ENABLE_AI_SUGGESTIONS";
|
|
@@ -5,9 +5,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
|
|
|
5
5
|
className="add-creatives-section creatives-library-mode "
|
|
6
6
|
>
|
|
7
7
|
<CapSlideBox
|
|
8
|
-
closeIconPosition="right"
|
|
9
8
|
closeIconSize="m"
|
|
10
|
-
closeIconType="close"
|
|
11
9
|
content={
|
|
12
10
|
<SlideBoxContent
|
|
13
11
|
currentChannel="RCS"
|
|
@@ -78,9 +76,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
|
|
|
78
76
|
className="add-creatives-section creatives-library-mode "
|
|
79
77
|
>
|
|
80
78
|
<CapSlideBox
|
|
81
|
-
closeIconPosition="right"
|
|
82
79
|
closeIconSize="m"
|
|
83
|
-
closeIconType="close"
|
|
84
80
|
content={
|
|
85
81
|
<SlideBoxContent
|
|
86
82
|
currentChannel="WHATSAPP"
|
|
@@ -151,9 +147,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
151
147
|
className="add-creatives-section creatives-library-mode "
|
|
152
148
|
>
|
|
153
149
|
<CapSlideBox
|
|
154
|
-
closeIconPosition="right"
|
|
155
150
|
closeIconSize="m"
|
|
156
|
-
closeIconType="close"
|
|
157
151
|
content={
|
|
158
152
|
<SlideBoxContent
|
|
159
153
|
currentChannel="WHATSAPP"
|
|
@@ -226,9 +220,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
226
220
|
className="add-creatives-section creatives-library-mode "
|
|
227
221
|
>
|
|
228
222
|
<CapSlideBox
|
|
229
|
-
closeIconPosition="right"
|
|
230
223
|
closeIconSize="m"
|
|
231
|
-
closeIconType="close"
|
|
232
224
|
content={
|
|
233
225
|
<SlideBoxContent
|
|
234
226
|
currentChannel="WHATSAPP"
|
|
@@ -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 { createStructuredSelector } from 'reselect';
|
|
17
18
|
import { IntlProvider } from 'react-intl';
|
|
@@ -37,6 +38,7 @@ export class LanguageProvider extends React.PureComponent { // eslint-disable-li
|
|
|
37
38
|
'zh-cn': 'zh',
|
|
38
39
|
'zh': 'zh',
|
|
39
40
|
'en-US': 'en-US',
|
|
41
|
+
'ja-JP': 'ja-JP',
|
|
40
42
|
};
|
|
41
43
|
return map[locale];
|
|
42
44
|
};
|
|
@@ -57,6 +59,7 @@ export class LanguageProvider extends React.PureComponent { // eslint-disable-li
|
|
|
57
59
|
'zh-cn': zhCN,
|
|
58
60
|
'en-US': enUS,
|
|
59
61
|
'zh': zhCN,
|
|
62
|
+
'ja-JP': jaJP,
|
|
60
63
|
};
|
|
61
64
|
const jLocale = localStorage.getItem('jlocale') || 'en';
|
|
62
65
|
const file = mappedLocale[jLocale];
|
|
@@ -19,6 +19,7 @@ const messages = defineMessages({
|
|
|
19
19
|
|
|
20
20
|
jest.mock('antd/es/locale-provider/en_US', () => 'enUS');
|
|
21
21
|
jest.mock('antd/es/locale-provider/zh_CN', () => 'zhCN');
|
|
22
|
+
jest.mock('antd/es/locale-provider/ja_JP', () => 'jaJP');
|
|
22
23
|
|
|
23
24
|
describe('<LanguageProvider />', () => {
|
|
24
25
|
it('should render its children', () => {
|