@parhelia/localization 0.4.12883 → 0.4.12903
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/LICENSE +1 -1
- package/dist/LocalizeItemDialog.d.ts.map +1 -1
- package/dist/LocalizeItemDialog.js +8 -2
- package/dist/LocalizeItemUtils.d.ts +1 -0
- package/dist/LocalizeItemUtils.d.ts.map +1 -1
- package/dist/LocalizeItemUtils.js +44 -18
- package/dist/api/discovery.d.ts +17 -3
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +35 -14
- package/dist/hooks/useTranslationWizard.d.ts.map +1 -1
- package/dist/hooks/useTranslationWizard.js +10 -2
- package/dist/index.js +1 -1
- package/dist/services/translationService.d.ts +31 -27
- package/dist/services/translationService.d.ts.map +1 -1
- package/dist/services/translationService.js +29 -32
- package/dist/services/translationSettingsService.d.ts +79 -0
- package/dist/services/translationSettingsService.d.ts.map +1 -0
- package/dist/services/translationSettingsService.js +68 -0
- package/dist/settings/ExcludedContentTypeDialog.d.ts +12 -0
- package/dist/settings/ExcludedContentTypeDialog.d.ts.map +1 -0
- package/dist/settings/ExcludedContentTypeDialog.js +27 -0
- package/dist/settings/TranslationProviderDialog.d.ts +18 -0
- package/dist/settings/TranslationProviderDialog.d.ts.map +1 -0
- package/dist/settings/TranslationProviderDialog.js +85 -0
- package/dist/settings/TranslationServicesPanel.d.ts +14 -4
- package/dist/settings/TranslationServicesPanel.d.ts.map +1 -1
- package/dist/settings/TranslationServicesPanel.js +175 -264
- package/dist/setup/LocalizationSetupStep.d.ts.map +1 -1
- package/dist/setup/LocalizationSetupStep.js +14 -33
- package/dist/sidebar/TranslationSidebar.d.ts.map +1 -1
- package/dist/sidebar/TranslationSidebar.js +35 -14
- package/dist/steps/ItemSelectionTree.d.ts.map +1 -1
- package/dist/steps/ItemSelectionTree.js +124 -41
- package/dist/steps/ProviderStep.d.ts.map +1 -1
- package/dist/steps/ProviderStep.js +54 -42
- package/dist/steps/ServiceLanguageSelectionStep.d.ts.map +1 -1
- package/dist/steps/ServiceLanguageSelectionStep.js +32 -9
- package/dist/steps/types.d.ts +7 -1
- package/dist/steps/types.d.ts.map +1 -1
- package/dist/translation-center/TranslationBatches.d.ts +27 -0
- package/dist/translation-center/TranslationBatches.d.ts.map +1 -1
- package/dist/translation-center/TranslationBatches.js +119 -70
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizeItemDialog.d.ts","sourceRoot":"","sources":["../src/LocalizeItemDialog.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EAExB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"LocalizeItemDialog.d.ts","sourceRoot":"","sources":["../src/LocalizeItemDialog.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EAExB,MAAM,eAAe,CAAC;AAoEvB,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,uBAAuB,GAAG,WAAW,CAAC,uBAAuB,CAAC,+BAoiBtE"}
|
|
@@ -3,6 +3,7 @@ import { Dialog, DialogContent, StyledDialogTitle, Button, cn, AlertDialog, Aler
|
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState, } from "react";
|
|
4
4
|
import { AlertTriangle as LucideAlertTriangle, ArrowRight as LucideArrowRight, Globe as LucideGlobe, } from "lucide-react";
|
|
5
5
|
import { useTranslationWizard } from "./hooks/useTranslationWizard";
|
|
6
|
+
import { translationDescriptorKey } from "./services/translationService";
|
|
6
7
|
import { performDefaultTranslation, } from "./LocalizeItemUtils";
|
|
7
8
|
const AlertTriangleIcon = LucideAlertTriangle;
|
|
8
9
|
const GlobeIcon = LucideGlobe;
|
|
@@ -136,7 +137,7 @@ export function LocalizeItemDialog(props) {
|
|
|
136
137
|
itemCount += 1;
|
|
137
138
|
if (!entry.includeSubitems)
|
|
138
139
|
continue;
|
|
139
|
-
const c = subitemCounts[entry.descriptor
|
|
140
|
+
const c = subitemCounts[translationDescriptorKey(entry.descriptor)];
|
|
140
141
|
if (c === undefined || c === "loading") {
|
|
141
142
|
isStreaming = true;
|
|
142
143
|
}
|
|
@@ -242,10 +243,15 @@ export function LocalizeItemDialog(props) {
|
|
|
242
243
|
targetLanguages: [...newData.targetLanguages].sort(),
|
|
243
244
|
includeSubitems: newData.includeSubitems,
|
|
244
245
|
discoveredItemIds: (newData.discoveredItems || [])
|
|
245
|
-
.map((item) => item
|
|
246
|
+
.map((item) => translationDescriptorKey(item.descriptor))
|
|
246
247
|
.filter(Boolean)
|
|
247
248
|
.sort(),
|
|
248
249
|
itemsCount: newData.items?.length || 0,
|
|
250
|
+
selectionTreeItems: newData.selectionTreeItems?.map((entry) => [
|
|
251
|
+
translationDescriptorKey(entry.descriptor),
|
|
252
|
+
entry.descriptor.language,
|
|
253
|
+
entry.includeSubitems,
|
|
254
|
+
]),
|
|
249
255
|
serviceCustomData: serviceCustomDataKey,
|
|
250
256
|
metadata: metadataKey,
|
|
251
257
|
// batchName must be part of the key — otherwise the ProviderStep's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizeItemUtils.d.ts","sourceRoot":"","sources":["../src/LocalizeItemUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocalizeItemUtils.d.ts","sourceRoot":"","sources":["../src/LocalizeItemUtils.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA8EjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAsB,yBAAyB,CAC7C,UAAU,EAAE,qBAAqB,EACjC,WAAW,EAAE,eAAe,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAgI5B;AAGD,eAAO,MAAM,mBAAmB,kBACf,MAAM,EAAE,qBACJ,iBAAiB,EAAE,aAC3B,MAAM,QACX,QAAQ,uBACO,MAAM,+BAqC5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requestBatchTranslation, } from "./services/translationService";
|
|
1
|
+
import { requestBatchTranslation, translationItem, translationItemKey, } from "./services/translationService";
|
|
2
2
|
import { discoverItemsTree, flattenSelectableItemsFromBackendTrees, } from "./api/discovery";
|
|
3
3
|
/**
|
|
4
4
|
* Resolve the final list of item IDs to translate, expanding subitems for
|
|
@@ -12,38 +12,61 @@ import { discoverItemsTree, flattenSelectableItemsFromBackendTrees, } from "./ap
|
|
|
12
12
|
async function resolveItemIdsToTranslate(wizardData, sessionId) {
|
|
13
13
|
if (wizardData.selectionTreeItems &&
|
|
14
14
|
wizardData.selectionTreeItems.length > 0) {
|
|
15
|
-
const
|
|
16
|
-
const rootsToExpand =
|
|
15
|
+
const directItems = [];
|
|
16
|
+
const rootsToExpand = new Map();
|
|
17
17
|
for (const entry of wizardData.selectionTreeItems) {
|
|
18
18
|
if (entry.includeSubitems) {
|
|
19
|
-
|
|
19
|
+
const item = translationItem(entry.descriptor);
|
|
20
|
+
const key = JSON.stringify([item.store, entry.descriptor.language]);
|
|
21
|
+
const group = rootsToExpand.get(key) ?? {
|
|
22
|
+
store: item.store,
|
|
23
|
+
language: entry.descriptor.language,
|
|
24
|
+
rootItemIds: [],
|
|
25
|
+
};
|
|
26
|
+
group.rootItemIds.push(item.itemId);
|
|
27
|
+
rootsToExpand.set(key, group);
|
|
20
28
|
}
|
|
21
29
|
else {
|
|
22
|
-
|
|
30
|
+
directItems.push(translationItem(entry.descriptor));
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
const expandedItems = [];
|
|
34
|
+
for (const request of rootsToExpand.values()) {
|
|
35
|
+
const tree = await discoverItemsTree(request, sessionId);
|
|
36
|
+
expandedItems.push(...flattenSelectableItemsFromBackendTrees(tree.trees).map((n) => ({
|
|
37
|
+
store: n.store,
|
|
38
|
+
itemId: n.id,
|
|
39
|
+
})));
|
|
30
40
|
}
|
|
31
|
-
return Array.from(new
|
|
41
|
+
return Array.from(new Map([...directItems, ...expandedItems].map((item) => [
|
|
42
|
+
translationItemKey(item),
|
|
43
|
+
item,
|
|
44
|
+
])).values());
|
|
32
45
|
}
|
|
33
46
|
const fallback = wizardData.discoveredItems && wizardData.discoveredItems.length > 0
|
|
34
47
|
? wizardData.discoveredItems
|
|
35
48
|
: wizardData.items;
|
|
36
|
-
return fallback.map((item) =>
|
|
49
|
+
return Array.from(new Map(fallback.map((item) => {
|
|
50
|
+
const coordinate = translationItem(item.descriptor);
|
|
51
|
+
return [translationItemKey(coordinate), coordinate];
|
|
52
|
+
})).values());
|
|
37
53
|
}
|
|
38
54
|
// Unified translation function that handles both single and batch translations
|
|
39
55
|
// Now always uses batch logic for traceability in recentTranslation view
|
|
40
56
|
export async function performDefaultTranslation(wizardData, editContext) {
|
|
41
57
|
// Build language mappings (source -> target) from the wizard data
|
|
42
|
-
// The source language is consistent for each target language across all items
|
|
58
|
+
// The source language is consistent for each target language across all items.
|
|
59
|
+
// The source the user chose in the dialog wins; the status endpoint's
|
|
60
|
+
// per-target suggestion is only the fallback for callers without one.
|
|
43
61
|
const languageMappings = [];
|
|
44
62
|
for (const language of wizardData.targetLanguages) {
|
|
45
63
|
const languageInfo = wizardData.languageData.get(language);
|
|
46
|
-
const sourceLanguage =
|
|
64
|
+
const sourceLanguage = wizardData.sourceLanguage ||
|
|
65
|
+
wizardData.selectionTreeItems?.[0]?.descriptor.language ||
|
|
66
|
+
wizardData.items[0]?.descriptor.language ||
|
|
67
|
+
languageInfo?.translationStatus?.sourceLanguage;
|
|
68
|
+
if (!sourceLanguage)
|
|
69
|
+
throw new Error("Select a source language before translating.");
|
|
47
70
|
// Skip if target language equals source language
|
|
48
71
|
if (language === sourceLanguage)
|
|
49
72
|
continue;
|
|
@@ -53,9 +76,9 @@ export async function performDefaultTranslation(wizardData, editContext) {
|
|
|
53
76
|
});
|
|
54
77
|
}
|
|
55
78
|
// Resolve item IDs, expanding subitems per-item-flag where applicable.
|
|
56
|
-
const
|
|
79
|
+
const items = await resolveItemIdsToTranslate(wizardData, editContext.sessionId);
|
|
57
80
|
// Validate that we have translation requests to process
|
|
58
|
-
if (languageMappings.length === 0 ||
|
|
81
|
+
if (languageMappings.length === 0 || items.length === 0) {
|
|
59
82
|
const error = new Error("No translations needed. All selected target languages match the source languages of the items.");
|
|
60
83
|
error.name = "NoTranslationsNeededError";
|
|
61
84
|
throw error;
|
|
@@ -106,7 +129,7 @@ export async function performDefaultTranslation(wizardData, editContext) {
|
|
|
106
129
|
provider: wizardData.translationProvider,
|
|
107
130
|
batchMetadata,
|
|
108
131
|
languageMappings,
|
|
109
|
-
|
|
132
|
+
items,
|
|
110
133
|
});
|
|
111
134
|
if (batchResult.type === "error") {
|
|
112
135
|
console.error("Translation request failed:", batchResult);
|
|
@@ -126,6 +149,7 @@ export async function performDefaultTranslation(wizardData, editContext) {
|
|
|
126
149
|
throw error;
|
|
127
150
|
}
|
|
128
151
|
const started = batchResponse.started?.map((result) => ({
|
|
152
|
+
store: result.store,
|
|
129
153
|
itemId: result.itemId,
|
|
130
154
|
targetLanguage: result.targetLanguage,
|
|
131
155
|
jobId: result.jobId,
|
|
@@ -142,7 +166,9 @@ export const defaultTranslateAll = async (languageCodes, translationStatus, sess
|
|
|
142
166
|
items: [item],
|
|
143
167
|
targetLanguages: languageCodes,
|
|
144
168
|
languageData: new Map(languageCodes.map((lang) => {
|
|
145
|
-
const status = translationStatus?.find((x) => x.
|
|
169
|
+
const status = translationStatus?.find((x) => x.store === item.descriptor.database &&
|
|
170
|
+
x.itemId === item.descriptor.id &&
|
|
171
|
+
x.targetLanguage === lang);
|
|
146
172
|
return [
|
|
147
173
|
lang,
|
|
148
174
|
{
|
package/dist/api/discovery.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { type TranslationItem } from "../services/translationService";
|
|
1
2
|
export declare function suggestBatchName(req: {
|
|
2
|
-
|
|
3
|
+
items: TranslationItem[];
|
|
4
|
+
language: string;
|
|
3
5
|
targetLanguages: string[];
|
|
4
6
|
includeSubitems?: boolean;
|
|
5
7
|
}, sessionId?: string): Promise<string | null>;
|
|
6
8
|
export type DiscoveredItem = {
|
|
9
|
+
store: string;
|
|
7
10
|
id: string;
|
|
8
11
|
name: string;
|
|
9
12
|
path: string;
|
|
@@ -17,6 +20,7 @@ export type TreeNode = {
|
|
|
17
20
|
children?: TreeNode[];
|
|
18
21
|
};
|
|
19
22
|
export type BackendTreeNode = {
|
|
23
|
+
store: string;
|
|
20
24
|
id: string;
|
|
21
25
|
name: string;
|
|
22
26
|
path: string;
|
|
@@ -25,8 +29,9 @@ export type BackendTreeNode = {
|
|
|
25
29
|
children: BackendTreeNode[];
|
|
26
30
|
};
|
|
27
31
|
export type DiscoverItemsTreeRequest = {
|
|
32
|
+
store: string;
|
|
28
33
|
rootItemIds: string[];
|
|
29
|
-
language
|
|
34
|
+
language: string;
|
|
30
35
|
};
|
|
31
36
|
export type DiscoverItemsTreeResponse = {
|
|
32
37
|
trees: BackendTreeNode[];
|
|
@@ -36,10 +41,18 @@ export type DiscoverItemsTreeResponse = {
|
|
|
36
41
|
export declare function discoverItemsTree(req: DiscoverItemsTreeRequest, sessionId?: string): Promise<DiscoverItemsTreeResponse>;
|
|
37
42
|
export declare function convertBackendTreeToTreeNodes(trees: BackendTreeNode[]): TreeNode[];
|
|
38
43
|
export declare function flattenSelectableItemsFromBackendTrees(trees: BackendTreeNode[]): DiscoveredItem[];
|
|
44
|
+
/**
|
|
45
|
+
* One line of the subitem-count stream. `refusal` (multi-cms cfsmall, A15; cfabove §5): the store refused to list the subtree
|
|
46
|
+
* past its bound — the server's last line names why, the count is what was walked before, and the translation itself would
|
|
47
|
+
* refuse with the same reason.
|
|
48
|
+
*/
|
|
39
49
|
export type SubitemCountUpdate = {
|
|
40
50
|
count: number;
|
|
41
51
|
complete: boolean;
|
|
52
|
+
refusal?: string;
|
|
42
53
|
};
|
|
54
|
+
/** The update a parsed stream line states, or undefined for a line without a count. */
|
|
55
|
+
export declare function subitemCountUpdateOf(line: unknown): SubitemCountUpdate | undefined;
|
|
43
56
|
/**
|
|
44
57
|
* Streams the running subitem count for a given root item from the
|
|
45
58
|
* backend. The endpoint returns newline-delimited JSON; each parsed line
|
|
@@ -50,8 +63,9 @@ export type SubitemCountUpdate = {
|
|
|
50
63
|
* subitems flag off again).
|
|
51
64
|
*/
|
|
52
65
|
export declare function streamSubitemCount(req: {
|
|
66
|
+
store: string;
|
|
53
67
|
itemId: string;
|
|
54
|
-
language
|
|
68
|
+
language: string;
|
|
55
69
|
}, onProgress: (update: SubitemCountUpdate) => void, options?: {
|
|
56
70
|
sessionId?: string;
|
|
57
71
|
signal?: AbortSignal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/api/discovery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/api/discovery.ts"],"names":[],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,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,wBAAwB,EAC7B,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,yBAAyB,CAAC,CAapC;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,eAAe,EAAE,GACvB,QAAQ,EAAE,CAiBZ;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,eAAe,EAAE,GACvB,cAAc,EAAE,CAelB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,uFAAuF;AACvF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAOlF;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EACxD,UAAU,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,EAChD,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,GACrD,OAAO,CAAC,MAAM,CAAC,CA0EjB"}
|
package/dist/api/discovery.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { post } from "@parhelia/core";
|
|
1
|
+
import { post, withParheliaRequestHeader } from "@parhelia/core";
|
|
2
|
+
import { translationItemKey, } from "../services/translationService";
|
|
2
3
|
export async function suggestBatchName(req, sessionId) {
|
|
3
4
|
const { data, type } = await post("/parhelia/translation/suggestBatchName", {
|
|
4
|
-
|
|
5
|
+
Items: req.items,
|
|
6
|
+
Language: req.language,
|
|
5
7
|
TargetLanguages: req.targetLanguages,
|
|
6
8
|
IncludeSubitems: !!req.includeSubitems,
|
|
7
9
|
}, sessionId);
|
|
@@ -12,6 +14,7 @@ export async function suggestBatchName(req, sessionId) {
|
|
|
12
14
|
}
|
|
13
15
|
export async function discoverItemsTree(req, sessionId) {
|
|
14
16
|
const { data, type, details } = await post("/parhelia/translation/discoveritemstree", {
|
|
17
|
+
Store: req.store,
|
|
15
18
|
RootItemIds: req.rootItemIds,
|
|
16
19
|
Language: req.language,
|
|
17
20
|
}, sessionId);
|
|
@@ -21,9 +24,10 @@ export async function discoverItemsTree(req, sessionId) {
|
|
|
21
24
|
}
|
|
22
25
|
export function convertBackendTreeToTreeNodes(trees) {
|
|
23
26
|
const convert = (n) => ({
|
|
24
|
-
key: n.id,
|
|
27
|
+
key: translationItemKey({ store: n.store, itemId: n.id }),
|
|
25
28
|
label: n.name,
|
|
26
29
|
data: {
|
|
30
|
+
store: n.store,
|
|
27
31
|
id: n.id,
|
|
28
32
|
name: n.name,
|
|
29
33
|
path: n.path,
|
|
@@ -40,6 +44,7 @@ export function flattenSelectableItemsFromBackendTrees(trees) {
|
|
|
40
44
|
const out = [];
|
|
41
45
|
const walk = (n) => {
|
|
42
46
|
out.push({
|
|
47
|
+
store: n.store,
|
|
43
48
|
id: n.id,
|
|
44
49
|
name: n.name,
|
|
45
50
|
path: n.path,
|
|
@@ -51,6 +56,18 @@ export function flattenSelectableItemsFromBackendTrees(trees) {
|
|
|
51
56
|
trees.forEach(walk);
|
|
52
57
|
return out;
|
|
53
58
|
}
|
|
59
|
+
/** The update a parsed stream line states, or undefined for a line without a count. */
|
|
60
|
+
export function subitemCountUpdateOf(line) {
|
|
61
|
+
if (!line || typeof line !== "object")
|
|
62
|
+
return undefined;
|
|
63
|
+
const parsed = line;
|
|
64
|
+
if (typeof parsed.count !== "number")
|
|
65
|
+
return undefined;
|
|
66
|
+
const update = { count: parsed.count, complete: !!parsed.complete };
|
|
67
|
+
if (typeof parsed.refusal === "string" && parsed.refusal.trim())
|
|
68
|
+
update.refusal = parsed.refusal;
|
|
69
|
+
return update;
|
|
70
|
+
}
|
|
54
71
|
/**
|
|
55
72
|
* Streams the running subitem count for a given root item from the
|
|
56
73
|
* backend. The endpoint returns newline-delimited JSON; each parsed line
|
|
@@ -66,12 +83,16 @@ export async function streamSubitemCount(req, onProgress, options) {
|
|
|
66
83
|
url += "?sessionId=" + options.sessionId;
|
|
67
84
|
const response = await fetch(url, {
|
|
68
85
|
method: "POST",
|
|
69
|
-
body: JSON.stringify({
|
|
86
|
+
body: JSON.stringify({
|
|
87
|
+
Store: req.store,
|
|
88
|
+
ItemId: req.itemId,
|
|
89
|
+
Language: req.language,
|
|
90
|
+
}),
|
|
70
91
|
credentials: "include",
|
|
71
|
-
headers: {
|
|
92
|
+
headers: withParheliaRequestHeader({
|
|
72
93
|
"Content-Type": "application/json",
|
|
73
94
|
Accept: "application/x-ndjson",
|
|
74
|
-
},
|
|
95
|
+
}),
|
|
75
96
|
signal: options?.signal,
|
|
76
97
|
});
|
|
77
98
|
if (!response.ok || !response.body) {
|
|
@@ -94,10 +115,10 @@ export async function streamSubitemCount(req, onProgress, options) {
|
|
|
94
115
|
if (!line)
|
|
95
116
|
continue;
|
|
96
117
|
try {
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
99
|
-
lastCount =
|
|
100
|
-
onProgress(
|
|
118
|
+
const update = subitemCountUpdateOf(JSON.parse(line));
|
|
119
|
+
if (update) {
|
|
120
|
+
lastCount = update.count;
|
|
121
|
+
onProgress(update);
|
|
101
122
|
}
|
|
102
123
|
}
|
|
103
124
|
catch {
|
|
@@ -109,10 +130,10 @@ export async function streamSubitemCount(req, onProgress, options) {
|
|
|
109
130
|
const tail = buffer.trim();
|
|
110
131
|
if (tail) {
|
|
111
132
|
try {
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
lastCount =
|
|
115
|
-
onProgress(
|
|
133
|
+
const update = subitemCountUpdateOf(JSON.parse(tail));
|
|
134
|
+
if (update) {
|
|
135
|
+
lastCount = update.count;
|
|
136
|
+
onProgress(update);
|
|
116
137
|
}
|
|
117
138
|
}
|
|
118
139
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslationWizard.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslationWizard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAUhF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,uBAAuB;;;
|
|
1
|
+
{"version":3,"file":"useTranslationWizard.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslationWizard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAUhF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,uBAAuB;;;EA+GlE"}
|
|
@@ -16,6 +16,7 @@ export function useTranslationWizard(props) {
|
|
|
16
16
|
});
|
|
17
17
|
// Load initial data
|
|
18
18
|
useEffect(() => {
|
|
19
|
+
let cancelled = false;
|
|
19
20
|
const loadInitialData = async () => {
|
|
20
21
|
const itemDescriptors = props.items.map((x) => x.descriptor);
|
|
21
22
|
// Load translation providers
|
|
@@ -35,7 +36,7 @@ export function useTranslationWizard(props) {
|
|
|
35
36
|
}));
|
|
36
37
|
// Load translation status for each item
|
|
37
38
|
const translationStatuses = await Promise.all(itemDescriptors.map(async (item) => {
|
|
38
|
-
const result = await getTranslationStatus(item
|
|
39
|
+
const result = await getTranslationStatus(item);
|
|
39
40
|
return result.data || [];
|
|
40
41
|
}));
|
|
41
42
|
const languageMap = new Map();
|
|
@@ -50,15 +51,19 @@ export function useTranslationWizard(props) {
|
|
|
50
51
|
if (language.versions > 0 && itemDescriptors[itemIndex]) {
|
|
51
52
|
languageData.items.push(itemDescriptors[itemIndex]);
|
|
52
53
|
}
|
|
53
|
-
const status = translationStatuses[itemIndex]?.find((s) => s.
|
|
54
|
+
const status = translationStatuses[itemIndex]?.find((s) => s.store === itemDescriptors[itemIndex]?.database &&
|
|
55
|
+
s.targetLanguage === language.languageCode);
|
|
54
56
|
if (status && !languageData.translationStatus) {
|
|
55
57
|
languageData.translationStatus = status;
|
|
56
58
|
}
|
|
57
59
|
languageMap.set(language.languageCode, languageData);
|
|
58
60
|
});
|
|
59
61
|
});
|
|
62
|
+
if (cancelled)
|
|
63
|
+
return;
|
|
60
64
|
setWizardData((prevData) => ({
|
|
61
65
|
...prevData,
|
|
66
|
+
items: props.items,
|
|
62
67
|
translationProviders: providers,
|
|
63
68
|
translationProvider: defaultProvider,
|
|
64
69
|
languageData: languageMap,
|
|
@@ -66,6 +71,9 @@ export function useTranslationWizard(props) {
|
|
|
66
71
|
}
|
|
67
72
|
};
|
|
68
73
|
loadInitialData();
|
|
74
|
+
return () => {
|
|
75
|
+
cancelled = true;
|
|
76
|
+
};
|
|
69
77
|
}, [props.items]);
|
|
70
78
|
// Save translation provider to localStorage when it changes
|
|
71
79
|
useEffect(() => {
|
package/dist/index.js
CHANGED
|
@@ -204,7 +204,7 @@ export function configureLocalization(configuration, options) {
|
|
|
204
204
|
const translationServicesPanel = {
|
|
205
205
|
id: "translation-services",
|
|
206
206
|
title: "Translation Services",
|
|
207
|
-
subtitle: "
|
|
207
|
+
subtitle: "Translation services and how translation runs",
|
|
208
208
|
icon: _jsx(LanguagesIcon, { strokeWidth: 1 }),
|
|
209
209
|
content: _jsx(TranslationServicesPanel, {}),
|
|
210
210
|
requiresAdministrator: true,
|
|
@@ -6,7 +6,27 @@ export type TranslationApiResponse<T> = {
|
|
|
6
6
|
error?: string;
|
|
7
7
|
message?: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TranslationItem = {
|
|
10
|
+
store: string;
|
|
11
|
+
itemId: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function translationDescriptorKey(descriptor: {
|
|
14
|
+
database?: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}): string;
|
|
17
|
+
export declare function translationItemKey(item: {
|
|
18
|
+
store?: string | null;
|
|
19
|
+
itemId: string;
|
|
20
|
+
}): string;
|
|
21
|
+
export declare function translationItem(descriptor: {
|
|
22
|
+
database?: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}): TranslationItem;
|
|
25
|
+
export declare function getTranslationStatus(item: {
|
|
26
|
+
database?: string;
|
|
27
|
+
id: string;
|
|
28
|
+
language: string;
|
|
29
|
+
}): Promise<import("@parhelia/core").ExecutionResult<TranslationStatus[]>>;
|
|
10
30
|
export declare function getTranslationProviders(): Promise<import("@parhelia/core").ExecutionResult<TranslationProviderInfo[]>>;
|
|
11
31
|
export type AvailableTranslationService = {
|
|
12
32
|
serviceName: string;
|
|
@@ -14,33 +34,10 @@ export type AvailableTranslationService = {
|
|
|
14
34
|
isConfigured: boolean;
|
|
15
35
|
supportedLanguages?: string[];
|
|
16
36
|
settingsItemId?: string;
|
|
17
|
-
templateId: string;
|
|
18
|
-
templateName: string;
|
|
19
37
|
};
|
|
20
38
|
export declare function getAvailableTranslationServices(): Promise<import("@parhelia/core").ExecutionResult<TranslationApiResponse<AvailableTranslationService[]>>>;
|
|
21
|
-
export declare function createProviderSettings(serviceName: string, templateId: string, language?: string, structureSettings?: TranslationStructureSettings): Promise<import("@parhelia/core").ExecutionResult<TranslationApiResponse<{
|
|
22
|
-
itemId: string;
|
|
23
|
-
itemPath: string;
|
|
24
|
-
}>>>;
|
|
25
|
-
export type TranslationStructureSettings = {
|
|
26
|
-
translationFolderPath: string;
|
|
27
|
-
translationFolderTemplateId: string;
|
|
28
|
-
translationProvidersPath: string;
|
|
29
|
-
translationProvidersTemplateId: string;
|
|
30
|
-
};
|
|
31
|
-
export type TranslationStructureItemInfo = {
|
|
32
|
-
exists: boolean;
|
|
33
|
-
itemId?: string;
|
|
34
|
-
path?: string;
|
|
35
|
-
templateId?: string;
|
|
36
|
-
};
|
|
37
|
-
export type TranslationStructureResponse = {
|
|
38
|
-
translationFolder: TranslationStructureItemInfo;
|
|
39
|
-
translationProvidersFolder: TranslationStructureItemInfo;
|
|
40
|
-
};
|
|
41
|
-
export declare function getTranslationStructure(settings: TranslationStructureSettings): Promise<import("@parhelia/core").ExecutionResult<TranslationApiResponse<TranslationStructureResponse>>>;
|
|
42
|
-
export declare function ensureTranslationStructure(settings: TranslationStructureSettings): Promise<import("@parhelia/core").ExecutionResult<TranslationApiResponse<TranslationStructureResponse>>>;
|
|
43
39
|
export type TranslationJobRecord = {
|
|
40
|
+
store?: string | null;
|
|
44
41
|
id?: string;
|
|
45
42
|
sequenceId?: number;
|
|
46
43
|
itemId: string;
|
|
@@ -106,6 +103,8 @@ export type TranslationBatchInfo = {
|
|
|
106
103
|
};
|
|
107
104
|
export declare function getBatchInfo(batchId: string): Promise<import("@parhelia/core").ExecutionResult<TranslationBatchInfo>>;
|
|
108
105
|
export type ListBatchesFilters = {
|
|
106
|
+
store?: string;
|
|
107
|
+
language?: string;
|
|
109
108
|
fromUtc?: string;
|
|
110
109
|
status?: string;
|
|
111
110
|
user?: string;
|
|
@@ -136,11 +135,13 @@ export type LanguageMapping = {
|
|
|
136
135
|
targetLanguage: string;
|
|
137
136
|
};
|
|
138
137
|
export type BatchTranslationResult = {
|
|
138
|
+
store: string;
|
|
139
139
|
itemId: string;
|
|
140
140
|
targetLanguage: string;
|
|
141
141
|
jobId: string;
|
|
142
142
|
};
|
|
143
143
|
export type BatchTranslationError = {
|
|
144
|
+
store: string;
|
|
144
145
|
itemId: string;
|
|
145
146
|
targetLanguage: string;
|
|
146
147
|
error: string;
|
|
@@ -150,14 +151,15 @@ export type BatchTranslationResponse = {
|
|
|
150
151
|
started: BatchTranslationResult[];
|
|
151
152
|
skipped: BatchTranslationError[];
|
|
152
153
|
};
|
|
153
|
-
export declare function requestBatchTranslation({ sessionId, provider, batchMetadata, languageMappings,
|
|
154
|
+
export declare function requestBatchTranslation({ sessionId, provider, batchMetadata, languageMappings, items, }: {
|
|
154
155
|
sessionId: string;
|
|
155
156
|
provider: string;
|
|
156
157
|
batchMetadata?: string;
|
|
157
158
|
languageMappings: LanguageMapping[];
|
|
158
|
-
|
|
159
|
+
items: TranslationItem[];
|
|
159
160
|
}): Promise<import("@parhelia/core").ExecutionResult<BatchTranslationResponse>>;
|
|
160
161
|
export type RetryBatchTranslationJobRequest = {
|
|
162
|
+
store: string;
|
|
161
163
|
sourceTranslationId?: string;
|
|
162
164
|
itemId: string;
|
|
163
165
|
sourceLanguage: string;
|
|
@@ -165,6 +167,7 @@ export type RetryBatchTranslationJobRequest = {
|
|
|
165
167
|
metadata?: string | null;
|
|
166
168
|
};
|
|
167
169
|
export type RetryBatchTranslationStartedJob = {
|
|
170
|
+
store: string;
|
|
168
171
|
sourceTranslationId?: string;
|
|
169
172
|
itemId: string;
|
|
170
173
|
sourceLanguage: string;
|
|
@@ -173,6 +176,7 @@ export type RetryBatchTranslationStartedJob = {
|
|
|
173
176
|
jobId: string;
|
|
174
177
|
};
|
|
175
178
|
export type RetryBatchTranslationSkippedJob = {
|
|
179
|
+
store: string;
|
|
176
180
|
sourceTranslationId?: string;
|
|
177
181
|
itemId: string;
|
|
178
182
|
sourceLanguage: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translationService.d.ts","sourceRoot":"","sources":["../../src/services/translationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"translationService.d.ts","sourceRoot":"","sources":["../../src/services/translationService.ts"],"names":[],"mappings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