@raketa-cloud/admin 1.8.17 → 1.8.18

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "1.8.17",
3
+ "version": "1.8.18",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "src/",
@@ -31,7 +31,7 @@
31
31
  "@hono/node-server": "2.0.12",
32
32
  "ejs": "^6.0.1",
33
33
  "graphql-request": "7.4.0",
34
- "hono": "4.12.32"
34
+ "hono": "4.12.34"
35
35
  },
36
36
  "overrides": {
37
37
  "error-ex": "1.3.4"
@@ -1,5 +1,5 @@
1
1
  const WORKFLOWS_MAP = {
2
- lokalise_to_ai_rt_hum: "Lokalise: AI translation & Human review",
2
+ lokalise_to_ai_rt_hum: "Lokalise: AI translation (DeepL) & Human review",
3
3
  lokalise_tt_hum: "Lokalise: Human translation",
4
4
  lokalise_tt_ai: "Lokalise: AI translation",
5
5
  };
@@ -7,7 +7,7 @@ describe("content_tasks_helper", () => {
7
7
  describe("workflowsMap", () => {
8
8
  test("returns correct workflow name for known type", () => {
9
9
  expect(workflowsMap("lokalise_to_ai_rt_hum")).toBe(
10
- "Lokalise: AI translation & Human review",
10
+ "Lokalise: AI translation (DeepL) & Human review",
11
11
  );
12
12
  expect(workflowsMap("lokalise_tt_hum")).toBe(
13
13
  "Lokalise: Human translation",
@@ -1,6 +1,6 @@
1
1
  <div class="page-wrapper">
2
2
  <div class="page-title">
3
- <h1 class="heading-1">Content Tasks</h1>
3
+ <h1 class="heading-1">Translation Tasks</h1>
4
4
 
5
5
  <div class="actions-toolbar">
6
6
  <button type="button" data-toggle-sidebar="1" class="p-2.5 rounded hover:bg-neutral-200 transition-all duration-300 ease-in-out dark:hover:bg-neutral-700">
@@ -18,7 +18,7 @@
18
18
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-12">
19
19
  <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z" />
20
20
  </svg>
21
- <h3 class="heading-3 mt-4">No content tasks</h3>
21
+ <h3 class="heading-3 mt-4">No translation tasks</h3>
22
22
  <p class="body-2 text-raketa-foreground/70 mt-2">
23
23
  <% if (Object.keys(_context.query).some(k => k.startsWith('f:'))) { %>
24
24
  No tasks match the selected filters. Try adjusting your filters.
@@ -70,6 +70,6 @@
70
70
  <% } %>
71
71
 
72
72
  <% if (hasActiveContentTask) { %>
73
- <div class="text-orange-700 mt-2 dark:text-orange-300">Actions are disabled while a content task is in progress.</div>
73
+ <div class="text-orange-700 mt-2 dark:text-orange-300">Actions are disabled while a translation task is in progress.</div>
74
74
  <% } %>
75
75
  </div>
@@ -42,7 +42,7 @@
42
42
  <% } %>
43
43
  <% if (utils.feature("contentTasks", _context) && item.activeContentTask && !item.activeContentTask.completedAt && !item.activeContentTask.failedAt) { %>
44
44
  <span class="bg-blue-100 chip text-blue-700 dark:bg-blue-900/50 dark:text-blue-300" title="<%= item.activeContentTask.workflow ? `${item.activeContentTask.workflow} workflow` : 'Translation in progress' %>">
45
- Content task in progress
45
+ Translation task in progress
46
46
  </span>
47
47
  <% } %>
48
48
 
@@ -35,12 +35,21 @@
35
35
  <label for="workflow" class="font-semibold hover:cursor-pointer body-3">Translation workflow</label>
36
36
  <select name="resource[workflow]" id="workflow">
37
37
  <option value="">Default (no workflow)</option>
38
- <option value="LOKALISE_TO_AI_RT_HUM" <%= resource.workflow === 'LOKALISE_TO_AI_RT_HUM' ? 'selected' : '' %>>Lokalise: AI translation & Human review</option>
39
- <option value="LOKALISE_TT_HUM" <%= resource.workflow === 'LOKALISE_TT_HUM' ? 'selected' : '' %>>Lokalise: Human translation</option>
40
- <option value="LOKALISE_TT_AI" <%= resource.workflow === 'LOKALISE_TT_AI' ? 'selected' : '' %>>Lokalise: AI translation</option>
38
+
39
+ <option value="LOKALISE_TO_AI_RT_HUM" <%= resource.workflow === 'LOKALISE_TO_AI_RT_HUM' ? 'selected' : '' %>>
40
+ <%= content_tasks.workflowsMap("LOKALISE_TO_AI_RT_HUM".toLowerCase()) %>
41
+ </option>
42
+
43
+ <option value="LOKALISE_TT_HUM" <%= resource.workflow === 'LOKALISE_TT_HUM' ? 'selected' : '' %>>
44
+ <%= content_tasks.workflowsMap("LOKALISE_TT_HUM".toLowerCase()) %>
45
+ </option>
46
+
47
+ <option value="LOKALISE_TT_AI" <%= resource.workflow === 'LOKALISE_TT_AI' ? 'selected' : '' %>>
48
+ <%= content_tasks.workflowsMap("LOKALISE_TT_AI".toLowerCase()) %>
49
+ </option>
41
50
  </select>
42
51
  <p class="text-sm text-raketa-foreground/50 mt-1">
43
- Select a workflow for the translation process. Lokalise workflow initiates a content task for external translation.
52
+ Select a workflow for the translation process. Lokalise workflow initiates a translation task for external translation.
44
53
  </p>
45
54
  </div>
46
55
  <% } %>
@@ -102,7 +111,7 @@
102
111
  <ul>
103
112
  <li>Content is required to start a Lokalise task.</li>
104
113
  <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
- <li>You can track translation progress in the <a href="<%= `/${_context.locale}/content_tasks` %>" target="_blank">Content tasks</a> module.</li>
114
+ <li>You can track translation progress in the <a href="<%= `/${_context.locale}/content_tasks` %>" target="_blank">Translation tasks</a> module.</li>
106
115
  </ul>
107
116
  </div>
108
117
  </div>