@raketa-cloud/admin 1.9.7 → 1.9.8
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const WORKFLOWS_MAP = {
|
|
2
|
-
|
|
2
|
+
lokalise_tt_ai_rt_hum: "Lokalise: AI translation (Pro AI) & Human review",
|
|
3
3
|
lokalise_tt_hum: "Lokalise: Human translation",
|
|
4
|
-
lokalise_tt_ai: "Lokalise: AI translation",
|
|
4
|
+
lokalise_tt_ai: "Lokalise: AI translation (Pro AI)",
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export const workflowsMap = (workflowType) => {
|
|
@@ -8,13 +8,15 @@ import {
|
|
|
8
8
|
describe("content_tasks_helper", () => {
|
|
9
9
|
describe("workflowsMap", () => {
|
|
10
10
|
test("returns correct workflow name for known type", () => {
|
|
11
|
-
expect(workflowsMap("
|
|
12
|
-
"Lokalise: AI translation (
|
|
11
|
+
expect(workflowsMap("lokalise_tt_ai_rt_hum")).toBe(
|
|
12
|
+
"Lokalise: AI translation (Pro AI) & Human review",
|
|
13
13
|
);
|
|
14
14
|
expect(workflowsMap("lokalise_tt_hum")).toBe(
|
|
15
15
|
"Lokalise: Human translation",
|
|
16
16
|
);
|
|
17
|
-
expect(workflowsMap("lokalise_tt_ai")).toBe(
|
|
17
|
+
expect(workflowsMap("lokalise_tt_ai")).toBe(
|
|
18
|
+
"Lokalise: AI translation (Pro AI)",
|
|
19
|
+
);
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
test("returns 'Unknown workflow' for unknown type", () => {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
<select name="resource[workflow][type]" id="workflow">
|
|
37
37
|
<option value="">Default (no workflow)</option>
|
|
38
38
|
|
|
39
|
-
<option value="
|
|
40
|
-
<%= content_tasks.workflowsMap("
|
|
39
|
+
<option value="LOKALISE_TT_AI_RT_HUM" <%= resource.workflow?.type === 'LOKALISE_TT_AI_RT_HUM' ? 'selected' : '' %>>
|
|
40
|
+
<%= content_tasks.workflowsMap("LOKALISE_TT_AI_RT_HUM".toLowerCase()) %>
|
|
41
41
|
</option>
|
|
42
42
|
|
|
43
43
|
<option value="LOKALISE_TT_HUM" <%= resource.workflow?.type === 'LOKALISE_TT_HUM' ? 'selected' : '' %>>
|