Skip to content

Commit f8cb014

Browse files
bbovenzichoo121600
authored andcommitted
Move Dag, run and TI into common.json (apache#51622)
* Move Dag, run and TI into common.json * Update more translation refs * Consolidate a few more fields, fix german keys * Extra consolidation plus refactor keys for all other languages * Fix config
1 parent 94cd62d commit f8cb014

File tree

12 files changed

+87
-0
lines changed

12 files changed

+87
-0
lines changed

airflow-core/src/airflow/ui/public/i18n/locales/en/common.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
"queuedAt": "Queued At",
5454
"runAfter": "Run After",
5555
"runType": "Run Type",
56+
<<<<<<< HEAD
5657
"sourceAssetEvent": "Source Asset Event",
58+
=======
59+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
5760
"triggeredBy": "Triggered By"
5861
},
5962
"dagRun_one": "Dag Run",
@@ -177,7 +180,10 @@
177180
"to": "To"
178181
},
179182
"task": {
183+
<<<<<<< HEAD
180184
"documentation": "Task Documentation",
185+
=======
186+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
181187
"lastInstance": "Last Instance",
182188
"operator": "Operator",
183189
"triggerRule": "Trigger Rule"
@@ -198,6 +204,7 @@
198204
"queue": "Queue",
199205
"queuedWhen": "Queued At",
200206
"scheduledWhen": "Scheduled At",
207+
<<<<<<< HEAD
201208
"triggerer": {
202209
"assigned": "Assigned triggerer",
203210
"class": "Trigger class",
@@ -206,6 +213,8 @@
206213
"latestHeartbeat": "Latest triggerer heartbeat",
207214
"title": "Triggerer Info"
208215
},
216+
=======
217+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
209218
"unixname": "Unix Name"
210219
},
211220
"taskInstance_one": "Task Instance",

airflow-core/src/airflow/ui/public/i18n/locales/en/components.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,15 @@
105105
"selectDescription": "Trigger a single run of this Dag",
106106
"selectLabel": "Single Run",
107107
"title": "Trigger Dag",
108+
<<<<<<< HEAD
108109
"toaster": {
109110
"success": {
110111
"description": "Dag run has been successfully triggered.",
111112
"title": "Dag Run Triggered"
112113
}
113114
},
115+
=======
116+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
114117
"unpause": "Unpause {{dagDisplayName}} on trigger"
115118
},
116119
"trimText": {

airflow-core/src/airflow/ui/public/i18n/locales/en/dag.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"noCode": "No Code Found",
1111
"parsedAt": "Parsed at:"
1212
},
13+
<<<<<<< HEAD
1314
"extraLinks": "Extra Links",
15+
=======
16+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
1417
"grid": {
1518
"buttons": {
1619
"resetToLatest": "Reset to latest",
@@ -99,9 +102,13 @@
99102
"overview": "Overview",
100103
"renderedTemplates": "Rendered Templates",
101104
"runs": "Runs",
105+
<<<<<<< HEAD
102106
"taskInstances": "Task Instances",
103107
"tasks": "Tasks",
104108
"xcom": "XCom"
109+
=======
110+
"tasks": "Tasks"
111+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
105112
},
106113
"taskGroups": {
107114
"collapseAll": "Collapse all task groups",

airflow-core/src/airflow/ui/public/i18n/locales/en/dags.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
"clear": {
2525
"button": "Clear {{type}}",
2626
"buttonTooltip": "Press shift+c to clear",
27+
<<<<<<< HEAD
2728
"error": "Failed to clear {{type}}",
29+
=======
30+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
2831
"title": "Clear {{type}}"
2932
},
3033
"delete": {

airflow-core/src/airflow/ui/public/i18n/locales/zh-TW/common.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dag_one": "Dag",
2323
"dag_other": "Dags",
2424
"dagDetails": {
25+
<<<<<<< HEAD
2526
"catchup": "自動回填",
2627
"concurrency": "並行數",
2728
"dagRunTimeout": "Dag 執行超時",
@@ -40,11 +41,16 @@
4041
"nextRun": "下次 Dag 執行",
4142
"owner": "擁有者",
4243
"params": "參數",
44+
=======
45+
"latestRun": "上次 Dag 執行",
46+
"nextRun": "下次 Dag 執行",
47+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
4348
"schedule": "排程",
4449
"tags": "標籤"
4550
},
4651
"dagId": "Dag ID",
4752
"dagRun": {
53+
<<<<<<< HEAD
4854
"conf": "設定",
4955
"dagVersions": "Dag 版本",
5056
"dataIntervalEnd": "資料區間結束",
@@ -55,6 +61,11 @@
5561
"runType": "執行類型",
5662
"sourceAssetEvent": "來源資源事件",
5763
"triggeredBy": "觸發者"
64+
=======
65+
"dagVersions": "Dag 版本",
66+
"runAfter": "最早可執行時間",
67+
"runType": "執行類型"
68+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
5869
},
5970
"dagRun_one": "Dag 執行",
6071
"dagRun_other": "Dag 執行",
@@ -106,11 +117,16 @@
106117
},
107118
"noItemsFound": "找不到 {{modelName}}",
108119
"note": {
120+
<<<<<<< HEAD
109121
"add": "新增筆記",
110122
"dagRun": "Dag 執行筆記",
111123
"label": "筆記",
112124
"placeholder": "新增筆記...",
113125
"taskInstance": "任務實例筆記"
126+
=======
127+
"label": "備註",
128+
"placeholder": "新增備註..."
129+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
114130
},
115131
"pools": {
116132
"deferred": "已延後",
@@ -177,8 +193,11 @@
177193
"to": ""
178194
},
179195
"task": {
196+
<<<<<<< HEAD
180197
"documentation": "任務文件",
181198
"lastInstance": "最後實例",
199+
=======
200+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
182201
"operator": "運算子",
183202
"triggerRule": "觸發規則"
184203
},
@@ -187,6 +206,7 @@
187206
"taskId": "任務 ID",
188207
"taskInstance": {
189208
"dagVersion": "Dag 版本",
209+
<<<<<<< HEAD
190210
"executor": "執行器",
191211
"executorConfig": "執行器設定",
192212
"hostname": "主機名稱",
@@ -207,6 +227,9 @@
207227
"title": "觸發器資訊"
208228
},
209229
"unixname": "Unix 名稱"
230+
=======
231+
"pool": "資源池"
232+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
210233
},
211234
"taskInstance_one": "任務實例",
212235
"taskInstance_other": "任務實例",

airflow-core/src/airflow/ui/public/i18n/locales/zh-TW/components.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
<<<<<<< HEAD
23
"backfill": {
34
"affected_one": "將會觸發 1 次執行。",
45
"affected_other": "將會觸發 {{count}} 次執行。",
@@ -128,5 +129,10 @@
128129
"versionSelect": {
129130
"dagVersion": "Dag 版本",
130131
"versionCode": "v{{versionCode}}"
132+
=======
133+
"triggerDag": {
134+
"button": "觸發",
135+
"title": "觸發 Dag"
136+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
131137
}
132138
}

airflow-core/src/airflow/ui/public/i18n/locales/zh-TW/dags.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
"clear": {
2525
"button": "清除 {{type}}",
2626
"buttonTooltip": "按下 shift+c 清除",
27+
<<<<<<< HEAD
2728
"error": "清除 {{type}} 時發生錯誤",
2829
"title": "清除 {{type}}"
30+
=======
31+
"title": "清除{{type}}"
32+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
2933
},
3034
"delete": {
3135
"button": "刪除 {{type}}",
@@ -46,13 +50,21 @@
4650
"failed": "按下 shift+f 標記為失敗",
4751
"success": "按下 shift+s 標記為成功"
4852
},
53+
<<<<<<< HEAD
4954
"title": "標記為 {{type}} 為 {{state}}"
55+
=======
56+
"title": "標記為{{type}}為{{state}}"
57+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
5058
},
5159
"options": {
5260
"downstream": "下游",
5361
"existingTasks": "清除現有任務",
5462
"future": "未來",
63+
<<<<<<< HEAD
5564
"onlyFailed": "只清除失敗任務",
65+
=======
66+
"onlyFailed": "清除失敗任務",
67+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
5668
"past": "過去",
5769
"queueNew": "排隊新任務",
5870
"upstream": "上游"
@@ -62,7 +74,10 @@
6274
"advanced": "進階搜尋",
6375
"clear": "清除搜尋",
6476
"dags": "搜尋 Dags",
77+
<<<<<<< HEAD
6578
"hotkey": "+K",
79+
=======
80+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
6681
"tasks": "搜尋任務"
6782
},
6883
"sort": {

airflow-core/src/airflow/ui/src/components/Clear/Run/ClearRunDialog.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ const ClearRunDialog = ({ dagRun, onClose, open }: Props) => {
6868
<Dialog.Header>
6969
<VStack align="start" gap={4}>
7070
<Heading size="xl">
71+
<<<<<<< HEAD
7172
<strong>
7273
{translate("dags:runAndTaskActions.clear.title", { type: translate("dagRun_one") })}:{" "}
7374
</strong>{" "}
7475
{dagRunId}
76+
=======
77+
<strong>{translate("dags:runAndTaskActions.clear.title", { type: "Run" })}: </strong> {dagRunId}
78+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
7579
</Heading>
7680
</VStack>
7781
</Dialog.Header>

airflow-core/src/airflow/ui/src/components/DurationChart.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,17 @@ export const DurationChart = ({
193193
ticks: {
194194
maxTicksLimit: 3,
195195
},
196+
<<<<<<< HEAD
196197
title: { align: "end", display: true, text: translate("common:dagRun.runAfter") },
197198
},
198199
y: {
199200
title: { align: "end", display: true, text: translate("common:duration") },
201+
=======
202+
title: { align: "end", display: true, text: translate("dagRun.runAfter") },
203+
},
204+
y: {
205+
title: { align: "end", display: true, text: translate("duration") },
206+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
200207
},
201208
},
202209
}}

airflow-core/src/airflow/ui/src/components/MarkAs/Run/MarkRunAsDialog.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@ const MarkRunAsDialog = ({ dagRun, onClose, open, state }: Props) => {
4747
<Dialog.Header>
4848
<VStack align="start" gap={4}>
4949
<Heading size="xl">
50+
<<<<<<< HEAD
5051
{translate("dags:runAndTaskActions.markAs.title", {
5152
state,
5253
type: translate("dagRun_one"),
5354
})}
5455
: {dagRunId} <StateBadge state={state} />
56+
=======
57+
{translate("dags:runAndTaskActions.markAs.title", { state, type: "Run" })}: {dagRunId}{" "}
58+
<StateBadge state={state} />
59+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
5560
</Heading>
5661
</VStack>
5762
</Dialog.Header>

airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,15 @@ const MarkTaskInstanceAsDialog = ({ onClose, open, state, taskInstance }: Props)
9090
<VStack align="start" gap={4}>
9191
<Heading size="xl">
9292
<strong>
93+
<<<<<<< HEAD
9394
{translate("dags:runAndTaskActions.markAs.title", {
9495
state,
9596
type: translate("taskInstance_one"),
9697
})}
9798
:
99+
=======
100+
{translate("dags:runAndTaskActions.markAs.title", { state, type: "Task Instance" })}:
101+
>>>>>>> bf7a5c94b0 (Move Dag, run and TI into common.json (#51622))
98102
</strong>{" "}
99103
{taskInstance.task_display_name} <Time datetime={taskInstance.start_date} />{" "}
100104
<StateBadge state={state} />

airflow-core/src/airflow/ui/src/pages/DagsList/DagOwners.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const DagOwners = ({
3939
return hasOwnerLink ? (
4040
<Link
4141
aria-label={translate("ownerLink", { owner })}
42+
asChild
4243
color="fg.info"
4344
href={link}
4445
key={owner}

0 commit comments

Comments
 (0)