Skip to content

Commit ec7cc5d

Browse files
RoyLee1224Lee-Wguan404ming
authored andcommitted
i18n: Closing zh-TW translation gaps (apache#51677)
* i18n: Closing tw-translation gaps * i18n: Add toast zh-TW translations & fix translations based on PR feedback * i18n: Modify tw translations based on PR feedback * Update airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json Co-authored-by: Wei Lee <[email protected]> * Update common.json Co-authored-by: Guan Ming(Wesley) Chiu <[email protected]> --------- Co-authored-by: Wei Lee <[email protected]> Co-authored-by: Guan Ming(Wesley) Chiu <[email protected]>
1 parent d772380 commit ec7cc5d

File tree

7 files changed

+395
-22
lines changed

7 files changed

+395
-22
lines changed

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"host": "主機",
2020
"port": ""
2121
},
22+
"connection_one": "連線",
23+
"connection_other": "連線",
2224
"delete":{
2325
"deleteConnection_one": "刪除 1 個連線",
2426
"deleteConnection_other": "刪除 {{count}} 個連線",
@@ -40,7 +42,18 @@
4042
"noRowMessage": "找不到連線",
4143
"searchPlaceholder": "搜尋連線",
4244
"test": "測試連線",
43-
"testDisabled": "測試連線功能已停用。請聯繫管理員以啟用。"
45+
"testDisabled": "測試連線功能已停用。請聯繫管理員以啟用。",
46+
"typeMeta": {
47+
"error": "取得連線類型中繼資料失敗",
48+
"standardFields": {
49+
"description": "描述",
50+
"host": "主機",
51+
"login": "登入",
52+
"password": "密碼",
53+
"port": "",
54+
"url_schema": "Schema"
55+
}
56+
}
4457
},
4558
"deleteActions":{
4659
"button": "刪除",
@@ -49,7 +62,8 @@
4962
"secondConfirmMessage": "此動作無法復原。",
5063
"thirdConfirmMessage": "您確定要繼續嗎?"
5164
},
52-
"selected": "已選取"
65+
"selected": "已選取",
66+
"tooltip": "刪除所選連線"
5367
},
5468
"formActions":{
5569
"reset": "重置",
@@ -80,6 +94,8 @@
8094
"slots": "配額"
8195
},
8296
"noPoolsFound": "找不到資源池",
97+
"pool_one": "資源池",
98+
"pool_other": "資源池",
8399
"searchPlaceholder": "搜尋資源池",
84100
"sort": {
85101
"asc": "名稱 (A-Z)",
@@ -103,10 +119,12 @@
103119
"deleteVariable_other": "刪除 {{count}} 個變數",
104120
"firstConfirmMessage_one": "您即將刪除以下變數:",
105121
"firstConfirmMessage_other": "您即將刪除以下變數:",
106-
"title": "刪除變數"
122+
"title": "刪除變數",
123+
"tooltip": "刪除所選變數"
107124
},
108125
"edit": "編輯變數",
109126
"export": "匯出",
127+
"exportTooltip": "匯出所選變數",
110128
"form": {
111129
"invalidJson": "無效的 JSON",
112130
"keyMaxLength": "鍵最多只能包含 250 個字元",
@@ -136,6 +154,8 @@
136154
"uploadPlaceholder": "上傳包含變數的 JSON 檔案 (例如:{\"key\": \"value\", ...})"
137155
},
138156
"noRowsMessage": "找不到變數",
139-
"searchPlaceholder": "搜尋鍵"
157+
"searchPlaceholder": "搜尋鍵",
158+
"variable_one": "變數",
159+
"variable_other": "變數"
140160
}
141161
}

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
22
"consumingDags": "消費者 Dags",
3+
"createEvent": {
4+
"button": "建立事件",
5+
"manual": {
6+
"description": "直接建立資源事件",
7+
"extra": "資源事件額外資訊",
8+
"label": "手動"
9+
},
10+
"materialize": {
11+
"description": "觸發資源上游的 Dag",
12+
"descriptionWithDag": "觸發此資源上游的 Dag: {{dagName}}",
13+
"label": "實體化",
14+
"unpauseDag": "觸發時取消暫停 {{dagName}}"
15+
},
16+
"success": {
17+
"manualDescription": "已成功手動建立資源事件。",
18+
"manualTitle": "已建立資源事件",
19+
"materializeDescription": "已成功觸發上游 Dag {{dagId}}。",
20+
"materializeTitle": "正在實體化資源"
21+
},
22+
"title": "為 {{name}} 建立資源事件"
23+
},
324
"group": "群組",
425
"lastAssetEvent": "最後資源事件",
526
"name": "名稱",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dag": "Dag",
1818
"key": "",
1919
"value": ""
20-
}
20+
},
21+
"title": "XCom"
2122
}
2223
}

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

Lines changed: 99 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,44 @@
1717
"auditLog": "審計日誌",
1818
"xcoms": "XComs"
1919
},
20+
"createdAssetEvent_one": "已建立資源事件",
21+
"createdAssetEvent_other": "已建立資源事件",
2022
"dag_one": "Dag",
2123
"dag_other": "Dags",
2224
"dagDetails": {
25+
"catchup": "自動回填",
26+
"concurrency": "並行數",
27+
"dagRunTimeout": "Dag 執行超時",
28+
"defaultArgs": "預設參數",
29+
"description": "描述",
30+
"documentation": "Dag 文件",
31+
"fileLocation": "檔案位置",
32+
"hasTaskConcurrencyLimits": "有任務並行數限制",
33+
"lastExpired": "最後過期時間",
34+
"lastParsed": "最後解析時間",
35+
"latestDagVersion": "最新 Dag 版本",
2336
"latestRun": "上次 Dag 執行",
37+
"maxActiveRuns": "活躍執行數上限",
38+
"maxActiveTasks": "活躍任務數上限",
39+
"maxConsecutiveFailedDagRuns": "連續失敗執行數上限",
2440
"nextRun": "下次 Dag 執行",
41+
"owner": "擁有者",
42+
"params": "參數",
2543
"schedule": "排程",
2644
"tags": "標籤"
2745
},
2846
"dagId": "Dag ID",
2947
"dagRun": {
48+
"conf": "設定",
3049
"dagVersions": "Dag 版本",
50+
"dataIntervalEnd": "資料區間結束",
51+
"dataIntervalStart": "資料區間起始",
52+
"lastSchedulingDecision": "最後排程決策",
53+
"queuedAt": "開始排隊時間",
3154
"runAfter": "最早可執行時間",
32-
"runType": "執行類型"
55+
"runType": "執行類型",
56+
"sourceAssetEvent": "來源資源事件",
57+
"triggeredBy": "觸發者"
3358
},
3459
"dagRun_one": "Dag 執行",
3560
"dagRun_other": "Dag 執行",
@@ -44,6 +69,13 @@
4469
},
4570
"duration": "時間範圍",
4671
"endDate": "結束日期",
72+
"error": {
73+
"back": "返回",
74+
"defaultMessage": "發生未預期的錯誤",
75+
"home": "首頁",
76+
"notFound": "找不到頁面",
77+
"title": "錯誤"
78+
},
4779
"expression": {
4880
"all": "全部",
4981
"and": "",
@@ -74,8 +106,11 @@
74106
},
75107
"noItemsFound": "找不到 {{modelName}}",
76108
"note": {
77-
"label": "備註",
78-
"placeholder": "新增備註..."
109+
"add": "新增筆記",
110+
"dagRun": "Dag 執行筆記",
111+
"label": "筆記",
112+
"placeholder": "新增筆記...",
113+
"taskInstance": "任務實例筆記"
79114
},
80115
"pools": {
81116
"deferred": "已延後",
@@ -102,6 +137,8 @@
102137
"users": "使用者"
103138
},
104139
"selectLanguage": "選擇語言",
140+
"sourceAssetEvent_one": "來源資源事件",
141+
"sourceAssetEvent_other": "來源資源事件",
105142
"startDate": "開始日期",
106143
"state": "狀態",
107144
"states": {
@@ -125,15 +162,13 @@
125162
"table": {
126163
"completedAt": "完成時間",
127164
"createdAt": "建立時間",
128-
"duration": "持續時間",
129165
"filterByTag": "依標籤篩選 Dags",
130166
"filterColumns": "篩選表格欄位",
131167
"filterReset_one": "重置篩選",
132168
"filterReset_other": "重置篩選",
133169
"from": "",
134170
"maxActiveRuns": "最大活躍執行數",
135171
"noTagsFound": "找不到標籤",
136-
"reprocessBehavior": "重新處理行為",
137172
"tagMode": {
138173
"all": "全部",
139174
"any": "任何"
@@ -142,6 +177,8 @@
142177
"to": ""
143178
},
144179
"task": {
180+
"documentation": "任務文件",
181+
"lastInstance": "最後實例",
145182
"operator": "運算子",
146183
"triggerRule": "觸發規則"
147184
},
@@ -150,7 +187,26 @@
150187
"taskId": "任務 ID",
151188
"taskInstance": {
152189
"dagVersion": "Dag 版本",
153-
"pool": "資源池"
190+
"executor": "執行器",
191+
"executorConfig": "執行器設定",
192+
"hostname": "主機名稱",
193+
"maxTries": "最大嘗試次數",
194+
"pid": "PID",
195+
"pool": "資源池",
196+
"poolSlots": "資源池配額",
197+
"priorityWeight": "優先權權重",
198+
"queue": "排隊",
199+
"queuedWhen": "開始排隊時間",
200+
"scheduledWhen": "開始排程時間",
201+
"triggerer": {
202+
"assigned": "指派的觸發器",
203+
"class": "觸發器類別",
204+
"createdAt": "觸發器建立時間",
205+
"id": "觸發器 ID",
206+
"latestHeartbeat": "最新觸發器心跳時間",
207+
"title": "觸發器資訊"
208+
},
209+
"unixname": "Unix 名稱"
154210
},
155211
"taskInstance_one": "任務實例",
156212
"taskInstance_other": "任務實例",
@@ -166,6 +222,43 @@
166222
"placeholder": "搜尋時區",
167223
"title": "選擇時區",
168224
"utc": "UTC"
225+
},
226+
"toaster": {
227+
"bulkDelete": {
228+
"error": "批次刪除 {{resourceName}} 請求失敗",
229+
"success": {
230+
"description": "已成功刪除 {{count}} 個 {{resourceName}}。鍵:{{keys}}",
231+
"title": "已提交批次刪除 {{resourceName}} 請求"
232+
}
233+
},
234+
"create": {
235+
"error": "建立 {{resourceName}} 請求失敗",
236+
"success": {
237+
"description": "{{resourceName}} 已成功建立。",
238+
"title": "已提交建立 {{resourceName}} 請求"
239+
}
240+
},
241+
"delete": {
242+
"error": "刪除 {{resourceName}} 請求失敗",
243+
"success": {
244+
"description": "{{resourceName}} 已成功刪除。",
245+
"title": "已提交刪除 {{resourceName}} 請求"
246+
}
247+
},
248+
"import": {
249+
"error": "匯入 {{resourceName}} 請求失敗",
250+
"success": {
251+
"description": "已成功匯入 {{count}} 個 {{resourceName}}。",
252+
"title": "已提交匯入 {{resourceName}} 請求"
253+
}
254+
},
255+
"update": {
256+
"error": "更新 {{resourceName}} 請求失敗",
257+
"success": {
258+
"description": "{{resourceName}} 已成功更新。",
259+
"title": "已提交更新 {{resourceName}} 請求"
260+
}
261+
}
169262
},
170263
"triggered": "已觸發",
171264
"tryNumber": "嘗試次數",

0 commit comments

Comments
 (0)