@wix/multilingual 1.0.12 → 1.0.14
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.
|
@@ -11,7 +11,7 @@ interface TranslatableContent extends TranslatableContentContentOneOf {
|
|
|
11
11
|
htmlContent?: string;
|
|
12
12
|
/** Rich content. */
|
|
13
13
|
richContent?: RichContent$1;
|
|
14
|
-
/** Translatable content ID. */
|
|
14
|
+
/** Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service. */
|
|
15
15
|
_id?: string | null;
|
|
16
16
|
/** Format of the translatable content. */
|
|
17
17
|
format?: Format;
|
|
@@ -1262,7 +1262,7 @@ interface TextNodeStyle$1 {
|
|
|
1262
1262
|
interface MachineTranslateRequest {
|
|
1263
1263
|
/** Language of the source text to translate. */
|
|
1264
1264
|
sourceLanguage: SupportedLanguage;
|
|
1265
|
-
/** Language
|
|
1265
|
+
/** Language to translate text into. */
|
|
1266
1266
|
targetLanguage: SupportedLanguage;
|
|
1267
1267
|
/** The content to translate. */
|
|
1268
1268
|
contentToTranslate: TranslatableContent;
|
|
@@ -1560,7 +1560,7 @@ interface UnknownFormatError {
|
|
|
1560
1560
|
interface BulkMachineTranslateRequest {
|
|
1561
1561
|
/** Language of the source text to translate. */
|
|
1562
1562
|
sourceLanguage: SupportedLanguage;
|
|
1563
|
-
/** Language
|
|
1563
|
+
/** Language to translate text into. */
|
|
1564
1564
|
targetLanguage: SupportedLanguage;
|
|
1565
1565
|
/** The content to translate. */
|
|
1566
1566
|
contentToTranslate?: TranslatableContent[];
|
|
@@ -2565,13 +2565,13 @@ interface BulkMachineTranslateResponseNonNullableFields {
|
|
|
2565
2565
|
};
|
|
2566
2566
|
}
|
|
2567
2567
|
interface MachineTranslateOptions {
|
|
2568
|
-
/** Language
|
|
2568
|
+
/** Language to translate text into. */
|
|
2569
2569
|
targetLanguage: SupportedLanguage;
|
|
2570
2570
|
/** The content to translate. */
|
|
2571
2571
|
contentToTranslate: TranslatableContent;
|
|
2572
2572
|
}
|
|
2573
2573
|
interface BulkMachineTranslateOptions {
|
|
2574
|
-
/** Language
|
|
2574
|
+
/** Language to translate text into. */
|
|
2575
2575
|
targetLanguage: SupportedLanguage;
|
|
2576
2576
|
/** The content to translate. */
|
|
2577
2577
|
contentToTranslate?: TranslatableContent[];
|
|
@@ -2579,7 +2579,8 @@ interface BulkMachineTranslateOptions {
|
|
|
2579
2579
|
|
|
2580
2580
|
interface HttpClient {
|
|
2581
2581
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2582
|
-
fetchWithAuth:
|
|
2582
|
+
fetchWithAuth: typeof fetch;
|
|
2583
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2583
2584
|
}
|
|
2584
2585
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2585
2586
|
type HttpResponse<T = any> = {
|
|
@@ -11,7 +11,7 @@ interface TranslatableContent$1 extends TranslatableContentContentOneOf$1 {
|
|
|
11
11
|
htmlContent?: string;
|
|
12
12
|
/** Rich content. */
|
|
13
13
|
richContent?: RichContent$3;
|
|
14
|
-
/** Translatable content ID. */
|
|
14
|
+
/** Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service. */
|
|
15
15
|
id?: string | null;
|
|
16
16
|
/** Format of the translatable content. */
|
|
17
17
|
format?: Format$1;
|
|
@@ -1243,7 +1243,7 @@ interface TextNodeStyle$3 {
|
|
|
1243
1243
|
interface MachineTranslateRequest$1 {
|
|
1244
1244
|
/** Language of the source text to translate. */
|
|
1245
1245
|
sourceLanguage: SupportedLanguage$1;
|
|
1246
|
-
/** Language
|
|
1246
|
+
/** Language to translate text into. */
|
|
1247
1247
|
targetLanguage: SupportedLanguage$1;
|
|
1248
1248
|
/** The content to translate. */
|
|
1249
1249
|
contentToTranslate: TranslatableContent$1;
|
|
@@ -1529,7 +1529,7 @@ interface MachineTranslateResponse$1 {
|
|
|
1529
1529
|
interface BulkMachineTranslateRequest$1 {
|
|
1530
1530
|
/** Language of the source text to translate. */
|
|
1531
1531
|
sourceLanguage: SupportedLanguage$1;
|
|
1532
|
-
/** Language
|
|
1532
|
+
/** Language to translate text into. */
|
|
1533
1533
|
targetLanguage: SupportedLanguage$1;
|
|
1534
1534
|
/** The content to translate. */
|
|
1535
1535
|
contentToTranslate?: TranslatableContent$1[];
|
|
@@ -2547,7 +2547,7 @@ interface TranslatableContent extends TranslatableContentContentOneOf {
|
|
|
2547
2547
|
htmlContent?: string;
|
|
2548
2548
|
/** Rich content. */
|
|
2549
2549
|
richContent?: RichContent$2;
|
|
2550
|
-
/** Translatable content ID. */
|
|
2550
|
+
/** Translatable content ID. The ID should be unique to this content and doesn't need to match the ID used by any other service. */
|
|
2551
2551
|
_id?: string | null;
|
|
2552
2552
|
/** Format of the translatable content. */
|
|
2553
2553
|
format?: Format;
|
|
@@ -3779,7 +3779,7 @@ interface TextNodeStyle$2 {
|
|
|
3779
3779
|
interface MachineTranslateRequest {
|
|
3780
3780
|
/** Language of the source text to translate. */
|
|
3781
3781
|
sourceLanguage: SupportedLanguage;
|
|
3782
|
-
/** Language
|
|
3782
|
+
/** Language to translate text into. */
|
|
3783
3783
|
targetLanguage: SupportedLanguage;
|
|
3784
3784
|
/** The content to translate. */
|
|
3785
3785
|
contentToTranslate: TranslatableContent;
|
|
@@ -4065,7 +4065,7 @@ interface MachineTranslateResponse {
|
|
|
4065
4065
|
interface BulkMachineTranslateRequest {
|
|
4066
4066
|
/** Language of the source text to translate. */
|
|
4067
4067
|
sourceLanguage: SupportedLanguage;
|
|
4068
|
-
/** Language
|
|
4068
|
+
/** Language to translate text into. */
|
|
4069
4069
|
targetLanguage: SupportedLanguage;
|
|
4070
4070
|
/** The content to translate. */
|
|
4071
4071
|
contentToTranslate?: TranslatableContent[];
|