@translated/lara 1.6.0 → 1.6.1
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/lib/sdk-version.d.ts +1 -1
- package/lib/sdk-version.js +1 -1
- package/lib/translator/models.d.ts +18 -0
- package/lib/translator/models.js +2 -0
- package/package.json +1 -1
package/lib/sdk-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.1";
|
package/lib/sdk-version.js
CHANGED
|
@@ -53,11 +53,29 @@ export interface TextBlock {
|
|
|
53
53
|
readonly text: string;
|
|
54
54
|
readonly translatable?: boolean;
|
|
55
55
|
}
|
|
56
|
+
export interface NGMemoryMatch {
|
|
57
|
+
memory: string;
|
|
58
|
+
tuid?: string;
|
|
59
|
+
source: string;
|
|
60
|
+
target: string;
|
|
61
|
+
sentence: string;
|
|
62
|
+
translation: string;
|
|
63
|
+
score: number;
|
|
64
|
+
}
|
|
65
|
+
export interface NGGlossaryMatch {
|
|
66
|
+
memory: string;
|
|
67
|
+
language: [string, string];
|
|
68
|
+
term: string;
|
|
69
|
+
translation: string;
|
|
70
|
+
}
|
|
56
71
|
export interface TextResult<T extends string | string[] | TextBlock[]> {
|
|
57
72
|
readonly contentType: string;
|
|
58
73
|
readonly sourceLanguage: string;
|
|
59
74
|
readonly translation: T;
|
|
60
75
|
readonly adaptedTo?: string[];
|
|
76
|
+
readonly glossaries?: string[];
|
|
77
|
+
readonly adaptedToMatches?: NGMemoryMatch[] | NGMemoryMatch[][];
|
|
78
|
+
readonly glossariesMatches?: NGGlossaryMatch[] | NGGlossaryMatch[][];
|
|
61
79
|
}
|
|
62
80
|
export interface Glossary {
|
|
63
81
|
readonly id: string;
|
package/lib/translator/models.js
CHANGED