@raketa-cloud/admin 1.8.15 → 1.8.16
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/package.json
CHANGED
|
@@ -8,6 +8,12 @@ function buildResourceUrl(resource, resourceRoutes) {
|
|
|
8
8
|
return `/${locale}/${route}/${id}`;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
const WORKFLOWS_MAP = {
|
|
12
|
+
lokalise_to_ai_rt_hum: "Lokalise: AI translation & Human review",
|
|
13
|
+
lokalise_tt_hum: "Lokalise: Human translation",
|
|
14
|
+
lokalise_tt_ai: "Lokalise: AI translation",
|
|
15
|
+
};
|
|
16
|
+
|
|
11
17
|
async function index(ctx) {
|
|
12
18
|
const items = await ctx.client.contentTasks.list(ctx.query);
|
|
13
19
|
const editors = await ctx.client.contentTasks.editors();
|
|
@@ -23,6 +29,8 @@ async function index(ctx) {
|
|
|
23
29
|
editors: editors.list || [],
|
|
24
30
|
buildResourceUrl: (resource) =>
|
|
25
31
|
buildResourceUrl(resource, resourceRoutes),
|
|
32
|
+
workflowsMap: (workflowType) =>
|
|
33
|
+
WORKFLOWS_MAP[workflowType] || "Unknown workflow",
|
|
26
34
|
},
|
|
27
35
|
};
|
|
28
36
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<div class="markdown">
|
|
83
83
|
Select one or multiple locales to initiate bulk translations. The process depends on your selected workflow:
|
|
84
84
|
<br />
|
|
85
|
-
<
|
|
85
|
+
<ul>
|
|
86
86
|
<li>
|
|
87
87
|
<strong>Default (Content Editors):</strong> A private copy and new revision are created immediately. The next screen provides quick links to translate settings and widgets so you can translate the content manually.
|
|
88
88
|
</li>
|
|
@@ -95,10 +95,14 @@
|
|
|
95
95
|
<li>
|
|
96
96
|
<strong>Human Translation (Lokalise):</strong> A task is sent to Lokalise where a human translator fully translates and reviews the content.
|
|
97
97
|
</li>
|
|
98
|
-
</
|
|
98
|
+
</ul>
|
|
99
99
|
|
|
100
100
|
<br />
|
|
101
|
-
<strong>
|
|
101
|
+
<strong>Notes:</strong> For all Lokalise workflows (<strong>AI, AI + Human</strong>, and <strong>Human</strong>):
|
|
102
|
+
<ul>
|
|
103
|
+
<li>Content is required to start a Lokalise task.</li>
|
|
104
|
+
<li>The private copy and new revision will be automatically created here in the CMS only after the external task is completed and returned.</li>
|
|
105
|
+
</ul>
|
|
102
106
|
</div>
|
|
103
107
|
</div>
|
|
104
108
|
|
|
@@ -114,11 +118,11 @@
|
|
|
114
118
|
</div>
|
|
115
119
|
|
|
116
120
|
<div class="markdown">
|
|
117
|
-
<
|
|
121
|
+
<ul>
|
|
118
122
|
<li>Select multiple locales to initiate bulk translations.</li>
|
|
119
123
|
<li>A private copy of the <%= Inflector.downcase(_context.resourceConfig.resourceType) %> will be automatically created for each selected language, with a new revision opened to facilitate the translation process.</li>
|
|
120
124
|
<li>On the next screen you'll see a list with quick links to transalte settings and widgets.</li>
|
|
121
|
-
</
|
|
125
|
+
</ul>
|
|
122
126
|
</div>
|
|
123
127
|
</div>
|
|
124
128
|
|