@lokalise/maestro-expert-tenant-lib 2.6.3 → 2.6.5
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/dist/index.cjs +35 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +35 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -389,7 +389,7 @@ var AI_MT_TRANSLATION_STEP_SETTINGS_SCHEMA = import_maestro_common4.WORKFLOW_LAY
|
|
|
389
389
|
});
|
|
390
390
|
var DEFAULT_AI_MT_TRANSLATION_STEP_SETTINGS = {
|
|
391
391
|
stepType: "ai_mt_translation_step",
|
|
392
|
-
stepTitle: "AI
|
|
392
|
+
stepTitle: "AI Translation Task",
|
|
393
393
|
taskType: "translation",
|
|
394
394
|
aiInstructions: void 0,
|
|
395
395
|
translationEngine: "ai",
|
|
@@ -558,9 +558,9 @@ var STEP_TYPES = [
|
|
|
558
558
|
// src/templates/resources/clear-translations-mt-ai-review-task.template.ts
|
|
559
559
|
var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
560
560
|
id: "clearTranslationsMtAiReviewTask",
|
|
561
|
-
title: "
|
|
562
|
-
summary: "
|
|
563
|
-
description: "This template sets up a workflow that clears existing translations, applies
|
|
561
|
+
title: "AI \u2022 Review task",
|
|
562
|
+
summary: "Apply AI translation after clearing existing translations, and then create a review task.",
|
|
563
|
+
description: "This template sets up a workflow that clears existing translations, applies AI translation, and creates a review task for human verification.",
|
|
564
564
|
layout: {
|
|
565
565
|
initial: "TriggerStep",
|
|
566
566
|
states: {
|
|
@@ -597,6 +597,9 @@ var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
|
597
597
|
TaskCreatedEvent: {
|
|
598
598
|
actions: [{ type: "storeCreatedTaskId" }]
|
|
599
599
|
},
|
|
600
|
+
TaskSkippedEvent: {
|
|
601
|
+
target: "ReviewTaskStep"
|
|
602
|
+
},
|
|
600
603
|
TaskClosedEvent: {
|
|
601
604
|
target: "ReviewTaskStep"
|
|
602
605
|
}
|
|
@@ -644,9 +647,9 @@ var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
|
644
647
|
// src/templates/resources/clear-translations-mt-ai-task.template.ts
|
|
645
648
|
var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
|
|
646
649
|
id: "clearTranslationsMtAiTask",
|
|
647
|
-
title: "
|
|
648
|
-
summary: "
|
|
649
|
-
description: "This template sets up a workflow that first clears existing translations and then applies
|
|
650
|
+
title: "AI",
|
|
651
|
+
summary: "Apply AI translation after clearing existing translations.",
|
|
652
|
+
description: "This template sets up a workflow that first clears existing translations and then applies AI translation.",
|
|
650
653
|
layout: {
|
|
651
654
|
initial: "TriggerStep",
|
|
652
655
|
states: {
|
|
@@ -683,6 +686,9 @@ var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
|
|
|
683
686
|
TaskCreatedEvent: {
|
|
684
687
|
actions: [{ type: "storeCreatedTaskId" }]
|
|
685
688
|
},
|
|
689
|
+
TaskSkippedEvent: {
|
|
690
|
+
target: "EndStep"
|
|
691
|
+
},
|
|
686
692
|
TaskClosedEvent: {
|
|
687
693
|
target: "EndStep"
|
|
688
694
|
}
|
|
@@ -705,9 +711,9 @@ var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
|
|
|
705
711
|
// src/templates/resources/clear-translations-tm-mt-ai-review-task.template.ts
|
|
706
712
|
var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
707
713
|
id: "clearTranslationsTmMtAiReviewTask",
|
|
708
|
-
title: "
|
|
709
|
-
summary: "
|
|
710
|
-
description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then
|
|
714
|
+
title: "TM \u2022 AI \u2022 Review task",
|
|
715
|
+
summary: "Translate content using Translation Memory, apply AI translation for the rest, and then create a review task",
|
|
716
|
+
description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then AI translation, and creates a review task for human verification.",
|
|
711
717
|
layout: {
|
|
712
718
|
initial: "TriggerStep",
|
|
713
719
|
states: {
|
|
@@ -756,6 +762,9 @@ var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
|
756
762
|
TaskCreatedEvent: {
|
|
757
763
|
actions: [{ type: "storeCreatedTaskId" }]
|
|
758
764
|
},
|
|
765
|
+
TaskSkippedEvent: {
|
|
766
|
+
target: "ReviewTaskStep"
|
|
767
|
+
},
|
|
759
768
|
TaskClosedEvent: {
|
|
760
769
|
target: "ReviewTaskStep"
|
|
761
770
|
}
|
|
@@ -805,7 +814,7 @@ var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
|
|
|
805
814
|
// src/templates/resources/clear-translations-tm-templates.ts
|
|
806
815
|
var CLEAR_TRANSLATIONS_TM_TEMPLATE = {
|
|
807
816
|
id: "clearTranslationsTm",
|
|
808
|
-
title: "Translation Memory",
|
|
817
|
+
title: "TM (Translation Memory)",
|
|
809
818
|
summary: "Translate content using Translation Memory when content is added/updated in the project.",
|
|
810
819
|
description: "Select this workflow to automatically generate a translation using Translation Memory when the content in the editor meets the conditions set in \u201CStart\u201D.",
|
|
811
820
|
layout: {
|
|
@@ -860,7 +869,7 @@ var CLEAR_TRANSLATIONS_TM_TEMPLATE = {
|
|
|
860
869
|
// src/templates/resources/clear-translations-tm-translate-review-task-template.ts
|
|
861
870
|
var CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE = {
|
|
862
871
|
id: "clearTranslationsTmTranslateReviewTask",
|
|
863
|
-
title: "
|
|
872
|
+
title: "TM \u2022 Translation task \u2022 Review task",
|
|
864
873
|
summary: "Translate content using TM before creating translation and review tasks.",
|
|
865
874
|
description: "This template sets up a chained workflow that enables the automatic creation of a translation task, and subsequently a review task, after applying Translation Memory. This can be used by teams that would like to avoid translating repetitive content that has already been translated in the past.",
|
|
866
875
|
layout: {
|
|
@@ -960,7 +969,7 @@ var CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE = {
|
|
|
960
969
|
// src/templates/resources/clear-translations-tm-translate-task-template.ts
|
|
961
970
|
var CLEAR_TRANSLATIONS_TM_TRANSLATE_TASK_TEMPLATE = {
|
|
962
971
|
id: "clearTranslationsTmTranslateTask",
|
|
963
|
-
title: "
|
|
972
|
+
title: "TM \u2022 Translation task",
|
|
964
973
|
summary: "Translate content using TM before creating a translation task.",
|
|
965
974
|
description: "This template sets up a chained workflow that enables the automatic creation of a translation task after applying Translation Memory. This can be used by teams that would like to avoid translating repetitive content that has already been translated in the past.",
|
|
966
975
|
layout: {
|
|
@@ -1082,7 +1091,7 @@ var REVIEW_TASK_TEMPLATE = {
|
|
|
1082
1091
|
// src/templates/resources/review-translate-review-task.template.ts
|
|
1083
1092
|
var REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE = {
|
|
1084
1093
|
id: "reviewTranslateReviewTask",
|
|
1085
|
-
title: "Review task \
|
|
1094
|
+
title: "Review task \u2022 Translation task \u2022 Review task",
|
|
1086
1095
|
summary: "Automatic creation of review tasks before and after a translation task.",
|
|
1087
1096
|
description: "This template sets up a chained workflow that enables the automatic creation of a review task both before and after translation. This can be used by teams that check the source copy before translation and conduct a review round after translation.",
|
|
1088
1097
|
layout: {
|
|
@@ -1168,7 +1177,7 @@ var REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE = {
|
|
|
1168
1177
|
// src/templates/resources/review-translate-task.template.ts
|
|
1169
1178
|
var REVIEW_TRANSLATE_TASK_TEMPLATE = {
|
|
1170
1179
|
id: "reviewTranslateTask",
|
|
1171
|
-
title: "Review task \
|
|
1180
|
+
title: "Review task \u2022 Translation task",
|
|
1172
1181
|
summary: "Automatic creation of a review task before a translation task.",
|
|
1173
1182
|
description: "Use this template to set up a chained workflow where a translation task will be created as soon as the review task is completed.",
|
|
1174
1183
|
layout: {
|
|
@@ -1235,7 +1244,7 @@ var REVIEW_TRANSLATE_TASK_TEMPLATE = {
|
|
|
1235
1244
|
// src/templates/resources/translate-and-review-task.template.ts
|
|
1236
1245
|
var TRANSLATE_AND_REVIEW_TASK_TEMPLATE = {
|
|
1237
1246
|
id: "translateAndReviewTask",
|
|
1238
|
-
title: "Translation task \
|
|
1247
|
+
title: "Translation task \u2022 Review task",
|
|
1239
1248
|
summary: "Automatic creation of translation task before a review task.",
|
|
1240
1249
|
description: "Use this template to set up a chained workflow where a review task will be created as soon as the translation task is completed.",
|
|
1241
1250
|
layout: {
|
|
@@ -1302,7 +1311,7 @@ var TRANSLATE_AND_REVIEW_TASK_TEMPLATE = {
|
|
|
1302
1311
|
// src/templates/resources/translate-review-review-task.template.ts
|
|
1303
1312
|
var TRANSLATE_REVIEW_REVIEW_TASK_TEMPLATE = {
|
|
1304
1313
|
id: "translateReviewReviewTask",
|
|
1305
|
-
title: "Translation task \
|
|
1314
|
+
title: "Translation task \u2022 Review task \u2022 Review task",
|
|
1306
1315
|
summary: "Automatic creation of a translation task followed by two review tasks.",
|
|
1307
1316
|
description: "This template to set up a chained workflow where it enables the automatic creation of two review tasks after translation. This could be used by teams that e.g. have one round of proofreading before stakeholders review it.",
|
|
1308
1317
|
layout: {
|
|
@@ -1458,22 +1467,22 @@ var buildTemplate = /* @__PURE__ */ __name((internalTemplate) => {
|
|
|
1458
1467
|
};
|
|
1459
1468
|
}, "buildTemplate");
|
|
1460
1469
|
var TEMPLATES = {
|
|
1470
|
+
clearTranslationsMtAiTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE),
|
|
1471
|
+
translateTask: buildTemplate(TRANSLATE_TASK_TEMPLATE),
|
|
1461
1472
|
clearTranslationsTm: buildTemplate(CLEAR_TRANSLATIONS_TM_TEMPLATE),
|
|
1462
|
-
|
|
1473
|
+
clearTranslationsMtAiReviewTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE),
|
|
1474
|
+
clearTranslationsTmMtAiReviewTask: buildTemplate(
|
|
1475
|
+
CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE
|
|
1476
|
+
),
|
|
1477
|
+
translateAndReviewTask: buildTemplate(TRANSLATE_AND_REVIEW_TASK_TEMPLATE),
|
|
1463
1478
|
clearTranslationsTmTranslateReviewTask: buildTemplate(
|
|
1464
1479
|
CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE
|
|
1465
1480
|
),
|
|
1466
|
-
translateTask: buildTemplate(TRANSLATE_TASK_TEMPLATE),
|
|
1467
|
-
reviewTask: buildTemplate(REVIEW_TASK_TEMPLATE),
|
|
1468
|
-
translateAndReviewTask: buildTemplate(TRANSLATE_AND_REVIEW_TASK_TEMPLATE),
|
|
1469
1481
|
translateReviewReviewTask: buildTemplate(TRANSLATE_REVIEW_REVIEW_TASK_TEMPLATE),
|
|
1482
|
+
reviewTask: buildTemplate(REVIEW_TASK_TEMPLATE),
|
|
1470
1483
|
reviewTranslateTask: buildTemplate(REVIEW_TRANSLATE_TASK_TEMPLATE),
|
|
1471
1484
|
reviewTranslateReviewTask: buildTemplate(REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE),
|
|
1472
|
-
|
|
1473
|
-
clearTranslationsMtAiReviewTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE),
|
|
1474
|
-
clearTranslationsTmMtAiReviewTask: buildTemplate(
|
|
1475
|
-
CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE
|
|
1476
|
-
)
|
|
1485
|
+
clearTranslationsTmTranslateTask: buildTemplate(CLEAR_TRANSLATIONS_TM_TRANSLATE_TASK_TEMPLATE)
|
|
1477
1486
|
};
|
|
1478
1487
|
|
|
1479
1488
|
// src/apiContract/schemas.ts
|