@wix/multilingual 1.0.0
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +28 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +28 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +28 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.d.ts +6 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.js +323 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.d.ts +14 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.js +66 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.d.ts +9 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.js +49 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.d.ts +2529 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.js +577 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.d.ts +2569 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.js +770 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.http.d.ts +6 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.http.js +318 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.http.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.d.ts +14 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.js +38 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.public.d.ts +9 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.public.js +14 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.public.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.types.d.ts +2529 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.types.js +574 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.types.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.d.ts +2569 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.js +742 -0
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.js.map +1 -0
- package/meta/package.json +6 -0
- package/package.json +37 -0
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
+
import * as ambassadorWixMultilingualMachineV3TranslatableContent from './multilingual-machine-v3-translatable-content.http';
|
|
13
|
+
let __verbose = false;
|
|
14
|
+
function __log(...args) {
|
|
15
|
+
__verbose && console.log(...args);
|
|
16
|
+
}
|
|
17
|
+
function __inspect(obj) {
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
export const __debug = {
|
|
21
|
+
verboseLogging: {
|
|
22
|
+
on: () => (__verbose = true),
|
|
23
|
+
off: () => (__verbose = false),
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const _toVeloEntity = '$';
|
|
27
|
+
const _fromVeloEntity = '$';
|
|
28
|
+
export var Format;
|
|
29
|
+
(function (Format) {
|
|
30
|
+
/** Unspecified format. Is automatically rejected. */
|
|
31
|
+
Format["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
32
|
+
/** Plain text content. */
|
|
33
|
+
Format["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
34
|
+
/** HTML content. */
|
|
35
|
+
Format["HTML"] = "HTML";
|
|
36
|
+
/** Rich Content. */
|
|
37
|
+
Format["RICH"] = "RICH";
|
|
38
|
+
})(Format || (Format = {}));
|
|
39
|
+
export var NodeType;
|
|
40
|
+
(function (NodeType) {
|
|
41
|
+
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
42
|
+
NodeType["TEXT"] = "TEXT";
|
|
43
|
+
NodeType["HEADING"] = "HEADING";
|
|
44
|
+
NodeType["BULLETED_LIST"] = "BULLETED_LIST";
|
|
45
|
+
NodeType["ORDERED_LIST"] = "ORDERED_LIST";
|
|
46
|
+
NodeType["LIST_ITEM"] = "LIST_ITEM";
|
|
47
|
+
NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
48
|
+
NodeType["CODE_BLOCK"] = "CODE_BLOCK";
|
|
49
|
+
NodeType["VIDEO"] = "VIDEO";
|
|
50
|
+
NodeType["DIVIDER"] = "DIVIDER";
|
|
51
|
+
NodeType["FILE"] = "FILE";
|
|
52
|
+
NodeType["GALLERY"] = "GALLERY";
|
|
53
|
+
NodeType["GIF"] = "GIF";
|
|
54
|
+
NodeType["HTML"] = "HTML";
|
|
55
|
+
NodeType["IMAGE"] = "IMAGE";
|
|
56
|
+
NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
57
|
+
NodeType["MAP"] = "MAP";
|
|
58
|
+
NodeType["POLL"] = "POLL";
|
|
59
|
+
NodeType["APP_EMBED"] = "APP_EMBED";
|
|
60
|
+
NodeType["BUTTON"] = "BUTTON";
|
|
61
|
+
NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
62
|
+
NodeType["TABLE"] = "TABLE";
|
|
63
|
+
NodeType["EMBED"] = "EMBED";
|
|
64
|
+
NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
65
|
+
NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
66
|
+
NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
67
|
+
NodeType["TABLE_CELL"] = "TABLE_CELL";
|
|
68
|
+
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
69
|
+
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
70
|
+
NodeType["AUDIO"] = "AUDIO";
|
|
71
|
+
})(NodeType || (NodeType = {}));
|
|
72
|
+
export var WidthType;
|
|
73
|
+
(function (WidthType) {
|
|
74
|
+
/** Width matches the content width */
|
|
75
|
+
WidthType["CONTENT"] = "CONTENT";
|
|
76
|
+
/** Small Width */
|
|
77
|
+
WidthType["SMALL"] = "SMALL";
|
|
78
|
+
/** Width will match the original asset width */
|
|
79
|
+
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
80
|
+
/** coast-to-coast display */
|
|
81
|
+
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
82
|
+
})(WidthType || (WidthType = {}));
|
|
83
|
+
export var PluginContainerDataAlignment;
|
|
84
|
+
(function (PluginContainerDataAlignment) {
|
|
85
|
+
/** Center Alignment */
|
|
86
|
+
PluginContainerDataAlignment["CENTER"] = "CENTER";
|
|
87
|
+
/** Left Alignment */
|
|
88
|
+
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
89
|
+
/** Right Alignment */
|
|
90
|
+
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
91
|
+
})(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
|
|
92
|
+
export var Type;
|
|
93
|
+
(function (Type) {
|
|
94
|
+
/** Regular link button */
|
|
95
|
+
Type["LINK"] = "LINK";
|
|
96
|
+
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
97
|
+
Type["ACTION"] = "ACTION";
|
|
98
|
+
})(Type || (Type = {}));
|
|
99
|
+
export var Target;
|
|
100
|
+
(function (Target) {
|
|
101
|
+
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
102
|
+
Target["SELF"] = "SELF";
|
|
103
|
+
/** Opens the linked document in a new window or tab */
|
|
104
|
+
Target["BLANK"] = "BLANK";
|
|
105
|
+
/** Opens the linked document in the parent frame */
|
|
106
|
+
Target["PARENT"] = "PARENT";
|
|
107
|
+
/** Opens the linked document in the full body of the window */
|
|
108
|
+
Target["TOP"] = "TOP";
|
|
109
|
+
})(Target || (Target = {}));
|
|
110
|
+
export var TextAlignment;
|
|
111
|
+
(function (TextAlignment) {
|
|
112
|
+
/** browser default, eqivalent to `initial` */
|
|
113
|
+
TextAlignment["AUTO"] = "AUTO";
|
|
114
|
+
/** Left align */
|
|
115
|
+
TextAlignment["LEFT"] = "LEFT";
|
|
116
|
+
/** Right align */
|
|
117
|
+
TextAlignment["RIGHT"] = "RIGHT";
|
|
118
|
+
/** Center align */
|
|
119
|
+
TextAlignment["CENTER"] = "CENTER";
|
|
120
|
+
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line. */
|
|
121
|
+
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
122
|
+
})(TextAlignment || (TextAlignment = {}));
|
|
123
|
+
export var LineStyle;
|
|
124
|
+
(function (LineStyle) {
|
|
125
|
+
/** Single Line */
|
|
126
|
+
LineStyle["SINGLE"] = "SINGLE";
|
|
127
|
+
/** Double Line */
|
|
128
|
+
LineStyle["DOUBLE"] = "DOUBLE";
|
|
129
|
+
/** Dashed Line */
|
|
130
|
+
LineStyle["DASHED"] = "DASHED";
|
|
131
|
+
/** Dotted Line */
|
|
132
|
+
LineStyle["DOTTED"] = "DOTTED";
|
|
133
|
+
})(LineStyle || (LineStyle = {}));
|
|
134
|
+
export var Width;
|
|
135
|
+
(function (Width) {
|
|
136
|
+
/** Large line */
|
|
137
|
+
Width["LARGE"] = "LARGE";
|
|
138
|
+
/** Medium line */
|
|
139
|
+
Width["MEDIUM"] = "MEDIUM";
|
|
140
|
+
/** Small line */
|
|
141
|
+
Width["SMALL"] = "SMALL";
|
|
142
|
+
})(Width || (Width = {}));
|
|
143
|
+
export var Alignment;
|
|
144
|
+
(function (Alignment) {
|
|
145
|
+
/** Center alignment */
|
|
146
|
+
Alignment["CENTER"] = "CENTER";
|
|
147
|
+
/** Left alignment */
|
|
148
|
+
Alignment["LEFT"] = "LEFT";
|
|
149
|
+
/** Right alignment */
|
|
150
|
+
Alignment["RIGHT"] = "RIGHT";
|
|
151
|
+
})(Alignment || (Alignment = {}));
|
|
152
|
+
export var ViewMode;
|
|
153
|
+
(function (ViewMode) {
|
|
154
|
+
/** No PDF view */
|
|
155
|
+
ViewMode["NONE"] = "NONE";
|
|
156
|
+
/** Full PDF view */
|
|
157
|
+
ViewMode["FULL"] = "FULL";
|
|
158
|
+
/** Mini PDF view */
|
|
159
|
+
ViewMode["MINI"] = "MINI";
|
|
160
|
+
})(ViewMode || (ViewMode = {}));
|
|
161
|
+
export var LayoutType;
|
|
162
|
+
(function (LayoutType) {
|
|
163
|
+
/** Collage type */
|
|
164
|
+
LayoutType["COLLAGE"] = "COLLAGE";
|
|
165
|
+
/** Masonry type */
|
|
166
|
+
LayoutType["MASONRY"] = "MASONRY";
|
|
167
|
+
/** Grid type */
|
|
168
|
+
LayoutType["GRID"] = "GRID";
|
|
169
|
+
/** Thumbnail type */
|
|
170
|
+
LayoutType["THUMBNAIL"] = "THUMBNAIL";
|
|
171
|
+
/** Slider type */
|
|
172
|
+
LayoutType["SLIDER"] = "SLIDER";
|
|
173
|
+
/** Slideshow type */
|
|
174
|
+
LayoutType["SLIDESHOW"] = "SLIDESHOW";
|
|
175
|
+
/** Panorama type */
|
|
176
|
+
LayoutType["PANORAMA"] = "PANORAMA";
|
|
177
|
+
/** Column type */
|
|
178
|
+
LayoutType["COLUMN"] = "COLUMN";
|
|
179
|
+
/** Magic type */
|
|
180
|
+
LayoutType["MAGIC"] = "MAGIC";
|
|
181
|
+
/** Fullsize images type */
|
|
182
|
+
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
183
|
+
})(LayoutType || (LayoutType = {}));
|
|
184
|
+
export var Orientation;
|
|
185
|
+
(function (Orientation) {
|
|
186
|
+
/** Rows Orientation */
|
|
187
|
+
Orientation["ROWS"] = "ROWS";
|
|
188
|
+
/** Columns Orientation */
|
|
189
|
+
Orientation["COLUMNS"] = "COLUMNS";
|
|
190
|
+
})(Orientation || (Orientation = {}));
|
|
191
|
+
export var Crop;
|
|
192
|
+
(function (Crop) {
|
|
193
|
+
/** Crop to fill */
|
|
194
|
+
Crop["FILL"] = "FILL";
|
|
195
|
+
/** Crop to fit */
|
|
196
|
+
Crop["FIT"] = "FIT";
|
|
197
|
+
})(Crop || (Crop = {}));
|
|
198
|
+
export var ThumbnailsAlignment;
|
|
199
|
+
(function (ThumbnailsAlignment) {
|
|
200
|
+
/** Top alignment */
|
|
201
|
+
ThumbnailsAlignment["TOP"] = "TOP";
|
|
202
|
+
/** Right alignment */
|
|
203
|
+
ThumbnailsAlignment["RIGHT"] = "RIGHT";
|
|
204
|
+
/** Bottom alignment */
|
|
205
|
+
ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
|
|
206
|
+
/** Left alignment */
|
|
207
|
+
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
208
|
+
/** No thumbnail */
|
|
209
|
+
ThumbnailsAlignment["NONE"] = "NONE";
|
|
210
|
+
})(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
|
|
211
|
+
export var Source;
|
|
212
|
+
(function (Source) {
|
|
213
|
+
Source["HTML"] = "HTML";
|
|
214
|
+
Source["ADSENSE"] = "ADSENSE";
|
|
215
|
+
})(Source || (Source = {}));
|
|
216
|
+
export var MapType;
|
|
217
|
+
(function (MapType) {
|
|
218
|
+
/** Roadmap map type */
|
|
219
|
+
MapType["ROADMAP"] = "ROADMAP";
|
|
220
|
+
/** Satellite map type */
|
|
221
|
+
MapType["SATELITE"] = "SATELITE";
|
|
222
|
+
/** Hybrid map type */
|
|
223
|
+
MapType["HYBRID"] = "HYBRID";
|
|
224
|
+
/** Terrain map type */
|
|
225
|
+
MapType["TERRAIN"] = "TERRAIN";
|
|
226
|
+
})(MapType || (MapType = {}));
|
|
227
|
+
export var ViewRole;
|
|
228
|
+
(function (ViewRole) {
|
|
229
|
+
/** Only Poll creator can view the results */
|
|
230
|
+
ViewRole["CREATOR"] = "CREATOR";
|
|
231
|
+
/** Anyone who voted can see the results */
|
|
232
|
+
ViewRole["VOTERS"] = "VOTERS";
|
|
233
|
+
/** Anyone can see the results, even if one didn't vote */
|
|
234
|
+
ViewRole["EVERYONE"] = "EVERYONE";
|
|
235
|
+
})(ViewRole || (ViewRole = {}));
|
|
236
|
+
export var VoteRole;
|
|
237
|
+
(function (VoteRole) {
|
|
238
|
+
/** Logged in member */
|
|
239
|
+
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
240
|
+
/** Anyone */
|
|
241
|
+
VoteRole["ALL"] = "ALL";
|
|
242
|
+
})(VoteRole || (VoteRole = {}));
|
|
243
|
+
export var PollLayoutType;
|
|
244
|
+
(function (PollLayoutType) {
|
|
245
|
+
/** List */
|
|
246
|
+
PollLayoutType["LIST"] = "LIST";
|
|
247
|
+
/** Grid */
|
|
248
|
+
PollLayoutType["GRID"] = "GRID";
|
|
249
|
+
})(PollLayoutType || (PollLayoutType = {}));
|
|
250
|
+
export var PollLayoutDirection;
|
|
251
|
+
(function (PollLayoutDirection) {
|
|
252
|
+
/** Left-to-right */
|
|
253
|
+
PollLayoutDirection["LTR"] = "LTR";
|
|
254
|
+
/** Right-to-left */
|
|
255
|
+
PollLayoutDirection["RTL"] = "RTL";
|
|
256
|
+
})(PollLayoutDirection || (PollLayoutDirection = {}));
|
|
257
|
+
export var BackgroundType;
|
|
258
|
+
(function (BackgroundType) {
|
|
259
|
+
/** Color background type */
|
|
260
|
+
BackgroundType["COLOR"] = "COLOR";
|
|
261
|
+
/** Image background type */
|
|
262
|
+
BackgroundType["IMAGE"] = "IMAGE";
|
|
263
|
+
/** Gradiant background type */
|
|
264
|
+
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
265
|
+
})(BackgroundType || (BackgroundType = {}));
|
|
266
|
+
export var DecorationType;
|
|
267
|
+
(function (DecorationType) {
|
|
268
|
+
DecorationType["BOLD"] = "BOLD";
|
|
269
|
+
DecorationType["ITALIC"] = "ITALIC";
|
|
270
|
+
DecorationType["UNDERLINE"] = "UNDERLINE";
|
|
271
|
+
DecorationType["SPOILER"] = "SPOILER";
|
|
272
|
+
DecorationType["ANCHOR"] = "ANCHOR";
|
|
273
|
+
DecorationType["MENTION"] = "MENTION";
|
|
274
|
+
DecorationType["LINK"] = "LINK";
|
|
275
|
+
DecorationType["COLOR"] = "COLOR";
|
|
276
|
+
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
277
|
+
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
278
|
+
})(DecorationType || (DecorationType = {}));
|
|
279
|
+
export var FontType;
|
|
280
|
+
(function (FontType) {
|
|
281
|
+
FontType["PX"] = "PX";
|
|
282
|
+
FontType["EM"] = "EM";
|
|
283
|
+
})(FontType || (FontType = {}));
|
|
284
|
+
export var AppType;
|
|
285
|
+
(function (AppType) {
|
|
286
|
+
AppType["PRODUCT"] = "PRODUCT";
|
|
287
|
+
AppType["EVENT"] = "EVENT";
|
|
288
|
+
AppType["BOOKING"] = "BOOKING";
|
|
289
|
+
})(AppType || (AppType = {}));
|
|
290
|
+
export var InitialExpandedItems;
|
|
291
|
+
(function (InitialExpandedItems) {
|
|
292
|
+
/** First item will be expended initally */
|
|
293
|
+
InitialExpandedItems["FIRST"] = "FIRST";
|
|
294
|
+
/** All items will expended initally */
|
|
295
|
+
InitialExpandedItems["ALL"] = "ALL";
|
|
296
|
+
/** All items collapsed initally */
|
|
297
|
+
InitialExpandedItems["NONE"] = "NONE";
|
|
298
|
+
})(InitialExpandedItems || (InitialExpandedItems = {}));
|
|
299
|
+
export var Direction;
|
|
300
|
+
(function (Direction) {
|
|
301
|
+
/** Left-to-right */
|
|
302
|
+
Direction["LTR"] = "LTR";
|
|
303
|
+
/** Right-to-left */
|
|
304
|
+
Direction["RTL"] = "RTL";
|
|
305
|
+
})(Direction || (Direction = {}));
|
|
306
|
+
export var VerticalAlignment;
|
|
307
|
+
(function (VerticalAlignment) {
|
|
308
|
+
/** Top alignment */
|
|
309
|
+
VerticalAlignment["TOP"] = "TOP";
|
|
310
|
+
/** Middle alignment */
|
|
311
|
+
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
312
|
+
/** Bottom alignment */
|
|
313
|
+
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
314
|
+
})(VerticalAlignment || (VerticalAlignment = {}));
|
|
315
|
+
/**
|
|
316
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
317
|
+
* `Value` type union.
|
|
318
|
+
*
|
|
319
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
320
|
+
*/
|
|
321
|
+
export var NullValue;
|
|
322
|
+
(function (NullValue) {
|
|
323
|
+
/** Null value. */
|
|
324
|
+
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
325
|
+
})(NullValue || (NullValue = {}));
|
|
326
|
+
export var SupportedLanguage;
|
|
327
|
+
(function (SupportedLanguage) {
|
|
328
|
+
/** Undefined Language */
|
|
329
|
+
SupportedLanguage["UNDEFINED_SUPPORTED_LANGUAGE"] = "UNDEFINED_SUPPORTED_LANGUAGE";
|
|
330
|
+
/** Afrikaans */
|
|
331
|
+
SupportedLanguage["AF"] = "AF";
|
|
332
|
+
/** Albanian */
|
|
333
|
+
SupportedLanguage["SQ"] = "SQ";
|
|
334
|
+
/** Amharic */
|
|
335
|
+
SupportedLanguage["AM"] = "AM";
|
|
336
|
+
/** Arabic */
|
|
337
|
+
SupportedLanguage["AR"] = "AR";
|
|
338
|
+
/** Armenian */
|
|
339
|
+
SupportedLanguage["HY"] = "HY";
|
|
340
|
+
/** Assamese */
|
|
341
|
+
SupportedLanguage["AS"] = "AS";
|
|
342
|
+
/** Aymara */
|
|
343
|
+
SupportedLanguage["AY"] = "AY";
|
|
344
|
+
/** Azerbaijani */
|
|
345
|
+
SupportedLanguage["AZ"] = "AZ";
|
|
346
|
+
/** Bambara */
|
|
347
|
+
SupportedLanguage["BM"] = "BM";
|
|
348
|
+
/** Basque */
|
|
349
|
+
SupportedLanguage["EU"] = "EU";
|
|
350
|
+
/** Belarusian */
|
|
351
|
+
SupportedLanguage["BE"] = "BE";
|
|
352
|
+
/** Bengali */
|
|
353
|
+
SupportedLanguage["BN"] = "BN";
|
|
354
|
+
/** Bhojpuri */
|
|
355
|
+
SupportedLanguage["BHO"] = "BHO";
|
|
356
|
+
/** Bosnian */
|
|
357
|
+
SupportedLanguage["BS"] = "BS";
|
|
358
|
+
/** Bulgarian */
|
|
359
|
+
SupportedLanguage["BG"] = "BG";
|
|
360
|
+
/** Catalan */
|
|
361
|
+
SupportedLanguage["CA"] = "CA";
|
|
362
|
+
/** Cebuano */
|
|
363
|
+
SupportedLanguage["CEB"] = "CEB";
|
|
364
|
+
/** Chinese (Simplified) */
|
|
365
|
+
SupportedLanguage["ZH_CN"] = "ZH_CN";
|
|
366
|
+
/** Chinese (Traditional) */
|
|
367
|
+
SupportedLanguage["ZH_TW"] = "ZH_TW";
|
|
368
|
+
/** Chinese (Simplified) */
|
|
369
|
+
SupportedLanguage["ZH"] = "ZH";
|
|
370
|
+
/** Corsican */
|
|
371
|
+
SupportedLanguage["CO"] = "CO";
|
|
372
|
+
/** Croatian */
|
|
373
|
+
SupportedLanguage["HR"] = "HR";
|
|
374
|
+
/** Czech */
|
|
375
|
+
SupportedLanguage["CS"] = "CS";
|
|
376
|
+
/** Danish */
|
|
377
|
+
SupportedLanguage["DA"] = "DA";
|
|
378
|
+
/** Dhivehi */
|
|
379
|
+
SupportedLanguage["DV"] = "DV";
|
|
380
|
+
/** Dogri */
|
|
381
|
+
SupportedLanguage["DOI"] = "DOI";
|
|
382
|
+
/** Dutch */
|
|
383
|
+
SupportedLanguage["NL"] = "NL";
|
|
384
|
+
/** English */
|
|
385
|
+
SupportedLanguage["EN"] = "EN";
|
|
386
|
+
/** Esperanto */
|
|
387
|
+
SupportedLanguage["EO"] = "EO";
|
|
388
|
+
/** Estonian */
|
|
389
|
+
SupportedLanguage["ET"] = "ET";
|
|
390
|
+
/** Ewe */
|
|
391
|
+
SupportedLanguage["EE"] = "EE";
|
|
392
|
+
/** Filipino (Tagalog) */
|
|
393
|
+
SupportedLanguage["FIL"] = "FIL";
|
|
394
|
+
/** Finnish */
|
|
395
|
+
SupportedLanguage["FI"] = "FI";
|
|
396
|
+
/** French */
|
|
397
|
+
SupportedLanguage["FR"] = "FR";
|
|
398
|
+
/** Frisian */
|
|
399
|
+
SupportedLanguage["FY"] = "FY";
|
|
400
|
+
/** Galician */
|
|
401
|
+
SupportedLanguage["GL"] = "GL";
|
|
402
|
+
/** Georgian */
|
|
403
|
+
SupportedLanguage["KA"] = "KA";
|
|
404
|
+
/** German */
|
|
405
|
+
SupportedLanguage["DE"] = "DE";
|
|
406
|
+
/** Greek */
|
|
407
|
+
SupportedLanguage["EL"] = "EL";
|
|
408
|
+
/** Guarani */
|
|
409
|
+
SupportedLanguage["GN"] = "GN";
|
|
410
|
+
/** Gujarati */
|
|
411
|
+
SupportedLanguage["GU"] = "GU";
|
|
412
|
+
/** Haitian Creole */
|
|
413
|
+
SupportedLanguage["HT"] = "HT";
|
|
414
|
+
/** Hausa */
|
|
415
|
+
SupportedLanguage["HA"] = "HA";
|
|
416
|
+
/** Hawaiian */
|
|
417
|
+
SupportedLanguage["HAW"] = "HAW";
|
|
418
|
+
/** Hebrew */
|
|
419
|
+
SupportedLanguage["HE"] = "HE";
|
|
420
|
+
/** Hindi */
|
|
421
|
+
SupportedLanguage["HI"] = "HI";
|
|
422
|
+
/** Hmong */
|
|
423
|
+
SupportedLanguage["HMN"] = "HMN";
|
|
424
|
+
/** Hungarian */
|
|
425
|
+
SupportedLanguage["HU"] = "HU";
|
|
426
|
+
/** Icelandic */
|
|
427
|
+
SupportedLanguage["IS"] = "IS";
|
|
428
|
+
/** Igbo */
|
|
429
|
+
SupportedLanguage["IG"] = "IG";
|
|
430
|
+
/** Ilocano */
|
|
431
|
+
SupportedLanguage["ILO"] = "ILO";
|
|
432
|
+
/** Indonesian */
|
|
433
|
+
SupportedLanguage["ID"] = "ID";
|
|
434
|
+
/** Irish */
|
|
435
|
+
SupportedLanguage["GA"] = "GA";
|
|
436
|
+
/** Italian */
|
|
437
|
+
SupportedLanguage["IT"] = "IT";
|
|
438
|
+
/** Japanese */
|
|
439
|
+
SupportedLanguage["JA"] = "JA";
|
|
440
|
+
/** Javanese */
|
|
441
|
+
SupportedLanguage["JW"] = "JW";
|
|
442
|
+
/** Kannada */
|
|
443
|
+
SupportedLanguage["KN"] = "KN";
|
|
444
|
+
/** Kazakh */
|
|
445
|
+
SupportedLanguage["KK"] = "KK";
|
|
446
|
+
/** Khmer */
|
|
447
|
+
SupportedLanguage["KM"] = "KM";
|
|
448
|
+
/** Kinyarwanda */
|
|
449
|
+
SupportedLanguage["RW"] = "RW";
|
|
450
|
+
/** Konkani */
|
|
451
|
+
SupportedLanguage["GOM"] = "GOM";
|
|
452
|
+
/** Korean */
|
|
453
|
+
SupportedLanguage["KO"] = "KO";
|
|
454
|
+
/** Krio */
|
|
455
|
+
SupportedLanguage["KRI"] = "KRI";
|
|
456
|
+
/** Kurdish */
|
|
457
|
+
SupportedLanguage["KU"] = "KU";
|
|
458
|
+
/** Kurdish (Sorani) */
|
|
459
|
+
SupportedLanguage["CKB"] = "CKB";
|
|
460
|
+
/** Kyrgyz */
|
|
461
|
+
SupportedLanguage["KY"] = "KY";
|
|
462
|
+
/** Lao */
|
|
463
|
+
SupportedLanguage["LO"] = "LO";
|
|
464
|
+
/** Latin */
|
|
465
|
+
SupportedLanguage["LA"] = "LA";
|
|
466
|
+
/** Latvian */
|
|
467
|
+
SupportedLanguage["LV"] = "LV";
|
|
468
|
+
/** Lingala */
|
|
469
|
+
SupportedLanguage["LN"] = "LN";
|
|
470
|
+
/** Lithuanian */
|
|
471
|
+
SupportedLanguage["LT"] = "LT";
|
|
472
|
+
/** Luganda */
|
|
473
|
+
SupportedLanguage["LG"] = "LG";
|
|
474
|
+
/** Luxembourgish */
|
|
475
|
+
SupportedLanguage["LB"] = "LB";
|
|
476
|
+
/** Macedonian */
|
|
477
|
+
SupportedLanguage["MK"] = "MK";
|
|
478
|
+
/** Maithili */
|
|
479
|
+
SupportedLanguage["MAI"] = "MAI";
|
|
480
|
+
/** Malagasy */
|
|
481
|
+
SupportedLanguage["MG"] = "MG";
|
|
482
|
+
/** Malay */
|
|
483
|
+
SupportedLanguage["MS"] = "MS";
|
|
484
|
+
/** Malayalam */
|
|
485
|
+
SupportedLanguage["ML"] = "ML";
|
|
486
|
+
/** Maltese */
|
|
487
|
+
SupportedLanguage["MT"] = "MT";
|
|
488
|
+
/** Maori */
|
|
489
|
+
SupportedLanguage["MI"] = "MI";
|
|
490
|
+
/** Marathi */
|
|
491
|
+
SupportedLanguage["MR"] = "MR";
|
|
492
|
+
/** Mriteilon (Manipuri) */
|
|
493
|
+
SupportedLanguage["MNI_MTEI"] = "MNI_MTEI";
|
|
494
|
+
/** Mizo */
|
|
495
|
+
SupportedLanguage["LUS"] = "LUS";
|
|
496
|
+
/** Mongolian */
|
|
497
|
+
SupportedLanguage["MN"] = "MN";
|
|
498
|
+
/** Myanmar (Burmese) */
|
|
499
|
+
SupportedLanguage["MY"] = "MY";
|
|
500
|
+
/** Nepali */
|
|
501
|
+
SupportedLanguage["NE"] = "NE";
|
|
502
|
+
/** Norwegian */
|
|
503
|
+
SupportedLanguage["NO"] = "NO";
|
|
504
|
+
/** Nyanja (Chichewa) */
|
|
505
|
+
SupportedLanguage["NY"] = "NY";
|
|
506
|
+
/** Odia (Oriya) */
|
|
507
|
+
SupportedLanguage["OR"] = "OR";
|
|
508
|
+
/** Oromo */
|
|
509
|
+
SupportedLanguage["OM"] = "OM";
|
|
510
|
+
/** Pashto */
|
|
511
|
+
SupportedLanguage["PS"] = "PS";
|
|
512
|
+
/** Persian */
|
|
513
|
+
SupportedLanguage["FA"] = "FA";
|
|
514
|
+
/** Polish */
|
|
515
|
+
SupportedLanguage["PL"] = "PL";
|
|
516
|
+
/** Portuguese (Portugal, Brazil) */
|
|
517
|
+
SupportedLanguage["PT"] = "PT";
|
|
518
|
+
/** Punjabi */
|
|
519
|
+
SupportedLanguage["PA"] = "PA";
|
|
520
|
+
/** Quechua */
|
|
521
|
+
SupportedLanguage["QU"] = "QU";
|
|
522
|
+
/** Romanian */
|
|
523
|
+
SupportedLanguage["RO"] = "RO";
|
|
524
|
+
/** Russian */
|
|
525
|
+
SupportedLanguage["RU"] = "RU";
|
|
526
|
+
/** Samoan */
|
|
527
|
+
SupportedLanguage["SM"] = "SM";
|
|
528
|
+
/** Sanskrit */
|
|
529
|
+
SupportedLanguage["SA"] = "SA";
|
|
530
|
+
/** Scots Gaelic */
|
|
531
|
+
SupportedLanguage["GD"] = "GD";
|
|
532
|
+
/** Sepedi */
|
|
533
|
+
SupportedLanguage["NSO"] = "NSO";
|
|
534
|
+
/** Serbian */
|
|
535
|
+
SupportedLanguage["SR"] = "SR";
|
|
536
|
+
/** Sesotho */
|
|
537
|
+
SupportedLanguage["ST"] = "ST";
|
|
538
|
+
/** Shona */
|
|
539
|
+
SupportedLanguage["SN"] = "SN";
|
|
540
|
+
/** Sindhi */
|
|
541
|
+
SupportedLanguage["SD"] = "SD";
|
|
542
|
+
/** Sinhala (Sinhalese) */
|
|
543
|
+
SupportedLanguage["SI"] = "SI";
|
|
544
|
+
/** Slovak */
|
|
545
|
+
SupportedLanguage["SK"] = "SK";
|
|
546
|
+
/** Slovenian */
|
|
547
|
+
SupportedLanguage["SL"] = "SL";
|
|
548
|
+
/** Somali */
|
|
549
|
+
SupportedLanguage["SO"] = "SO";
|
|
550
|
+
/** Spanish */
|
|
551
|
+
SupportedLanguage["ES"] = "ES";
|
|
552
|
+
/** Sundanese */
|
|
553
|
+
SupportedLanguage["SU"] = "SU";
|
|
554
|
+
/** Swahili */
|
|
555
|
+
SupportedLanguage["SW"] = "SW";
|
|
556
|
+
/** Swedish */
|
|
557
|
+
SupportedLanguage["SV"] = "SV";
|
|
558
|
+
/** Tagalog (Filipino) */
|
|
559
|
+
SupportedLanguage["TL"] = "TL";
|
|
560
|
+
/** Tajik */
|
|
561
|
+
SupportedLanguage["TG"] = "TG";
|
|
562
|
+
/** Tamil */
|
|
563
|
+
SupportedLanguage["TA"] = "TA";
|
|
564
|
+
/** Tatar */
|
|
565
|
+
SupportedLanguage["TT"] = "TT";
|
|
566
|
+
/** Telugu */
|
|
567
|
+
SupportedLanguage["TE"] = "TE";
|
|
568
|
+
/** Thai */
|
|
569
|
+
SupportedLanguage["TH"] = "TH";
|
|
570
|
+
/** Tigrinya */
|
|
571
|
+
SupportedLanguage["TI"] = "TI";
|
|
572
|
+
/** Tsonga */
|
|
573
|
+
SupportedLanguage["TS"] = "TS";
|
|
574
|
+
/** Turkish */
|
|
575
|
+
SupportedLanguage["TR"] = "TR";
|
|
576
|
+
/** Turkmen */
|
|
577
|
+
SupportedLanguage["TK"] = "TK";
|
|
578
|
+
/** Twi (Akan) */
|
|
579
|
+
SupportedLanguage["AK"] = "AK";
|
|
580
|
+
/** Ukrainian */
|
|
581
|
+
SupportedLanguage["UK"] = "UK";
|
|
582
|
+
/** Urdu */
|
|
583
|
+
SupportedLanguage["UR"] = "UR";
|
|
584
|
+
/** Uyghur */
|
|
585
|
+
SupportedLanguage["UG"] = "UG";
|
|
586
|
+
/** Uzbek */
|
|
587
|
+
SupportedLanguage["UZ"] = "UZ";
|
|
588
|
+
/** Vietnamese */
|
|
589
|
+
SupportedLanguage["VI"] = "VI";
|
|
590
|
+
/** Welsh */
|
|
591
|
+
SupportedLanguage["CY"] = "CY";
|
|
592
|
+
/** Xhosa */
|
|
593
|
+
SupportedLanguage["XH"] = "XH";
|
|
594
|
+
/** Yiddish */
|
|
595
|
+
SupportedLanguage["YI"] = "YI";
|
|
596
|
+
/** Yoruba */
|
|
597
|
+
SupportedLanguage["YO"] = "YO";
|
|
598
|
+
/** Zulu */
|
|
599
|
+
SupportedLanguage["ZU"] = "ZU";
|
|
600
|
+
})(SupportedLanguage || (SupportedLanguage = {}));
|
|
601
|
+
const _bulkMachineTranslateRequest = {
|
|
602
|
+
contentToTranslate: '_translatableContent',
|
|
603
|
+
};
|
|
604
|
+
const _bulkMachineTranslateResponse = { results: '_bulkTranslateResult' };
|
|
605
|
+
const _bulkTranslateResult = { item: '_translatableContent' };
|
|
606
|
+
const _machineTranslateRequest = { contentToTranslate: '_translatableContent' };
|
|
607
|
+
const _machineTranslateResponse = { translatedContent: '_translatableContent' };
|
|
608
|
+
const _node = { nodes: '_node' };
|
|
609
|
+
const _richContent = { nodes: '_node' };
|
|
610
|
+
const _translatableContent = { richContent: '_richContent' };
|
|
611
|
+
/**
|
|
612
|
+
* Translates a single content item from one supported language to another.
|
|
613
|
+
* @param sourceLanguage - Original language of the text
|
|
614
|
+
* @public
|
|
615
|
+
* @documentationMaturity preview
|
|
616
|
+
* @requiredField options
|
|
617
|
+
* @requiredField options.contentToTranslate
|
|
618
|
+
* @requiredField options.targetLanguage
|
|
619
|
+
* @requiredField sourceLanguage
|
|
620
|
+
* @applicableIdentity VISITOR
|
|
621
|
+
*/
|
|
622
|
+
export function machineTranslate(sourceLanguage, options) {
|
|
623
|
+
var _a, _b, _c;
|
|
624
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
625
|
+
const requestTransformation = {
|
|
626
|
+
sourceLanguage: '$[0]',
|
|
627
|
+
targetLanguage: '$[1].targetLanguage',
|
|
628
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
629
|
+
};
|
|
630
|
+
const responseTransformation = '$';
|
|
631
|
+
// @ts-ignore
|
|
632
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
633
|
+
const { toAmbassadorRequest } = serializer({
|
|
634
|
+
rootSchema: _machineTranslateRequest,
|
|
635
|
+
depSchemas: { _node, _richContent, _translatableContent },
|
|
636
|
+
fqdnTransformation: {
|
|
637
|
+
paths: [...['contentToTranslate']],
|
|
638
|
+
transformation: _fromVeloEntity,
|
|
639
|
+
},
|
|
640
|
+
customTransformation: requestTransformation,
|
|
641
|
+
});
|
|
642
|
+
const { fromJSON } = serializer({
|
|
643
|
+
rootSchema: _machineTranslateResponse,
|
|
644
|
+
depSchemas: { _node, _richContent, _translatableContent },
|
|
645
|
+
fqdnTransformation: {
|
|
646
|
+
paths: [...['translatedContent']],
|
|
647
|
+
transformation: _toVeloEntity,
|
|
648
|
+
},
|
|
649
|
+
customTransformation: responseTransformation,
|
|
650
|
+
});
|
|
651
|
+
const payload = toAmbassadorRequest([sourceLanguage, options]);
|
|
652
|
+
const reqOpts = ambassadorWixMultilingualMachineV3TranslatableContent.machineTranslate(payload);
|
|
653
|
+
__log(`"MachineTranslate" sending request with: ${__inspect(reqOpts)}`);
|
|
654
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
655
|
+
try {
|
|
656
|
+
const result = yield httpClient.request(reqOpts);
|
|
657
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
658
|
+
return fromJSON(result.data);
|
|
659
|
+
}
|
|
660
|
+
catch (err) {
|
|
661
|
+
const transformedError = sdkTransformError(err, {
|
|
662
|
+
spreadPathsToArguments: {},
|
|
663
|
+
explicitPathsToArguments: {
|
|
664
|
+
sourceLanguage: '$[0]',
|
|
665
|
+
targetLanguage: '$[1].targetLanguage',
|
|
666
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
667
|
+
},
|
|
668
|
+
singleArgumentUnchanged: false,
|
|
669
|
+
}, ['sourceLanguage', 'options']);
|
|
670
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
671
|
+
throw transformedError;
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Translates a collection of content items from one supported language to another.
|
|
677
|
+
* @param sourceLanguage - Original language of the text
|
|
678
|
+
* @public
|
|
679
|
+
* @documentationMaturity preview
|
|
680
|
+
* @requiredField options.targetLanguage
|
|
681
|
+
* @requiredField sourceLanguage
|
|
682
|
+
* @applicableIdentity VISITOR
|
|
683
|
+
*/
|
|
684
|
+
export function bulkMachineTranslate(sourceLanguage, options) {
|
|
685
|
+
var _a, _b, _c;
|
|
686
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
687
|
+
const requestTransformation = {
|
|
688
|
+
sourceLanguage: '$[0]',
|
|
689
|
+
targetLanguage: '$[1].targetLanguage',
|
|
690
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
691
|
+
};
|
|
692
|
+
const responseTransformation = '$';
|
|
693
|
+
// @ts-ignore
|
|
694
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
695
|
+
const { toAmbassadorRequest } = serializer({
|
|
696
|
+
rootSchema: _bulkMachineTranslateRequest,
|
|
697
|
+
depSchemas: { _node, _richContent, _translatableContent },
|
|
698
|
+
fqdnTransformation: {
|
|
699
|
+
paths: [...['Array#contentToTranslate']],
|
|
700
|
+
transformation: _fromVeloEntity,
|
|
701
|
+
},
|
|
702
|
+
customTransformation: requestTransformation,
|
|
703
|
+
});
|
|
704
|
+
const { fromJSON } = serializer({
|
|
705
|
+
rootSchema: _bulkMachineTranslateResponse,
|
|
706
|
+
depSchemas: {
|
|
707
|
+
_bulkTranslateResult,
|
|
708
|
+
_node,
|
|
709
|
+
_richContent,
|
|
710
|
+
_translatableContent,
|
|
711
|
+
},
|
|
712
|
+
fqdnTransformation: {
|
|
713
|
+
paths: [...['Array#results.item']],
|
|
714
|
+
transformation: _toVeloEntity,
|
|
715
|
+
},
|
|
716
|
+
customTransformation: responseTransformation,
|
|
717
|
+
});
|
|
718
|
+
const payload = toAmbassadorRequest([sourceLanguage, options]);
|
|
719
|
+
const reqOpts = ambassadorWixMultilingualMachineV3TranslatableContent.bulkMachineTranslate(payload);
|
|
720
|
+
__log(`"BulkMachineTranslate" sending request with: ${__inspect(reqOpts)}`);
|
|
721
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
722
|
+
try {
|
|
723
|
+
const result = yield httpClient.request(reqOpts);
|
|
724
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
725
|
+
return fromJSON(result.data);
|
|
726
|
+
}
|
|
727
|
+
catch (err) {
|
|
728
|
+
const transformedError = sdkTransformError(err, {
|
|
729
|
+
spreadPathsToArguments: {},
|
|
730
|
+
explicitPathsToArguments: {
|
|
731
|
+
sourceLanguage: '$[0]',
|
|
732
|
+
targetLanguage: '$[1].targetLanguage',
|
|
733
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
734
|
+
},
|
|
735
|
+
singleArgumentUnchanged: false,
|
|
736
|
+
}, ['sourceLanguage', 'options']);
|
|
737
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
738
|
+
throw transformedError;
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
//# sourceMappingURL=multilingual-machine-v3-translatable-content.universal.js.map
|