need4deed-sdk 0.0.165 → 0.0.166
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Lang } from "..";
|
|
1
2
|
export declare enum TranslationOrigin {
|
|
2
3
|
REFERENCE = "reference",
|
|
3
4
|
MACHINE = "machine",
|
|
@@ -8,3 +9,20 @@ export declare enum TranslationStatus {
|
|
|
8
9
|
DONE = "done",
|
|
9
10
|
FAILED = "failed"
|
|
10
11
|
}
|
|
12
|
+
export type TranslationErrorCode = "empty" | "length_ratio" | "token_missing" | "untranslated" | "source_is_target" | "wrong_language" | "bad_response" | "provider_unavailable";
|
|
13
|
+
export interface ApiFieldTranslation {
|
|
14
|
+
id: number;
|
|
15
|
+
text: string | null;
|
|
16
|
+
origin: TranslationOrigin;
|
|
17
|
+
status: TranslationStatus;
|
|
18
|
+
lastErrorCode?: TranslationErrorCode;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiFieldTranslationGet {
|
|
21
|
+
fieldName: string;
|
|
22
|
+
original: string;
|
|
23
|
+
originalLanguage?: Lang;
|
|
24
|
+
translations: Partial<Record<Lang, ApiFieldTranslation>>;
|
|
25
|
+
}
|
|
26
|
+
export interface ApiOriginalLanguagePut {
|
|
27
|
+
language: Lang;
|
|
28
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslationStatus = exports.TranslationOrigin = void 0;
|
|
2
4
|
// Machine translation of user-entered content (be#1064). Each
|
|
3
5
|
// field_translation row records where its text came from and, for machine
|
|
4
6
|
// rows, where it is in the translation queue.
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslationStatus = exports.TranslationOrigin = void 0;
|
|
7
7
|
var TranslationOrigin;
|
|
8
8
|
(function (TranslationOrigin) {
|
|
9
9
|
// Seeded, pre-translated reference data (skills, activities, languages, ...).
|