Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions airflow-core/src/airflow/ui/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import plConnections from "./locales/pl/connections.json";
import plDags from "./locales/pl/dags.json";
import plDashboard from "./locales/pl/dashboard.json";
import zhTWCommon from "./locales/zh-TW/common.json";
import zhTWDags from "./locales/zh-TW/dags.json";
import zhTWDashboard from "./locales/zh-TW/dashboard.json";

// TODO: Dynamically load translation files
Expand Down Expand Up @@ -83,6 +84,7 @@ const resources = {
},
"zh-TW": {
common: zhTWCommon,
dags: zhTWDags,
dashboard: zhTWDashboard,
},
};
Expand Down
29 changes: 28 additions & 1 deletion airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"auditLog": "審計日誌",
"xcoms": "XComs"
},
"dag_one": "Dag",
"dag_other": "Dags",
"dagRun_one": "Dag 執行",
"dagRun_other": "Dag 執行",
"defaultToGraphView": "預設使用圖形視圖",
Expand All @@ -26,7 +28,11 @@
"logoutConfirmation": "確定要登出嗎?",
"modal": {
"cancel": "取消",
"confirm": "確認"
"confirm": "確認",
"delete": {
"button": "刪除",
"confirmation": "確定要刪除 {{resourceName}} 嗎?此操作無法還原。"
}
},
"nav": {
"admin": "管理者",
Expand All @@ -48,6 +54,12 @@
"running": "執行中",
"scheduled": "已排程"
},
"runTypes": {
"asset_triggered": "資源觸發",
"backfill": "回填",
"manual": "手動觸發",
"scheduled": "已排程"
},
"security": {
"actions": "操作",
"permissions": "權限",
Expand All @@ -73,6 +85,21 @@
},
"switchToDarkMode": "切換到深色模式",
"switchToLightMode": "切換到淺色模式",
"table": {
"filterByTag": "依標籤篩選 Dags",
"filterColumns": "篩選表格欄位",
"filters": {
"filter_one": "篩選",
"filter_other": "篩選",
"reset": "重置"
},
"noTagsFound": "找不到標籤",
"tagMode": {
"all": "全部",
"any": "任何"
},
"tagPlaceholder": "依標籤篩選"
},
"taskInstance_one": "任務實例",
"taskInstance_other": "任務實例",
"timeRange": {
Expand Down
147 changes: 147 additions & 0 deletions airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"assetSchedule": "{{count}} / {{total}} 個資源事件已更新",
"dagActions": {
"delete": {
"button": "刪除 Dag",
"warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"
"warning": "這將會刪除所有與此 Dag 相關的系統資料,包括 Dag 執行與任務。"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still seems to be missed 🤔

},
"trigger": {
"button": "觸發",
"triggerDag": "觸發 Dag"
}
},
"filters": {
"paused": {
"active": "啟用中",
"all": "全部",
"paused": "暫停"
}
},
"list": {
"advancedSearch": "進階搜尋",
"clearSearch": "清除搜尋",
"columns": {
"dagId": "Dag ID",
"lastDagRun": "上次 Dag 執行",
"nextDagRun": "下次 Dag 執行",
"schedule": "排程",
"tags": "標籤"
},
"ownerLink": "Owner link for {{owner}}",
"searchPlaceholder": "搜尋 Dags"
},
"runAndTaskActions": {
"clear": {
"button": "清除 {{type}}",
"buttonTooltip": "按下 shift+c 清除",
"dialog": {
"affectedTasks": {
"columns": {
"mapIndex": "Map Index",
"runId": "執行 ID",
"state": "狀態",
"taskId": "任務 ID"
},
"noItemsFound": "找不到任務。",
"title": "受影響的任務: {{count}}"
},
"confirm": "確認",
"note": {
"placeholder": "新增備註...",
"title": "備註"
},
"options": {
"downstream": "下游",
"existingTasks": "清除現有任務",
"future": "未來",
"onlyFailed": "清除失敗任務",
"past": "過去",
"queueNew": "排隊新任務",
"upstream": "上游"
},
"title": "清除{{type}}"
}
},
"delete": {
"button": "刪除{{type}}",
"dialog": {
"resourceName": "{{type}} {{id}}",
"title": "刪除{{type}}",
"warning": "這將會刪除所有與此{{type}}相關的系統資料。"
},
"error": "刪除{{type}}時發生錯誤",
"success": {
"description": "{{type}}刪除請求成功。",
"title": "{{type}}刪除成功"
}
},
"markAs": {
"button": "標記為{{type}}...",
"buttonTooltip": {
"failed": "按下 shift+f 標記為失敗",
"success": "按下 shift+s 標記為成功"
},
"dialog": {
"confirm": "確認",
"options": {
"downstream": "下游",
"future": "未來",
"past": "過去",
"upstream": "上游"
},
"title": "標記為{{type}}為{{state}}"
}
}
},
"runs": {
"allRunTypes": "全部執行類型",
"allStates": "全部狀態",
"columns": {
"dagId": "Dag ID",
"dagVersions": "Dag 版本",
"duration": "持續時間",
"endDate": "結束日期",
"runAfter": "之後執行",
"runType": "執行類型",
"startDate": "開始日期",
"state": "狀態"
}
},
"sort": {
"displayName": {
"asc": "依顯示名稱排序 (A-Z)",
"desc": "依顯示名稱排序 (Z-A)"
},
"lastRunStartDate": {
"asc": "依上次開始執行日期排序 (從新到舊)",
"desc": "依上次開始執行日期排序 (從新到舊)"
},
"lastRunState": {
"asc": "依上次執行狀態排序 (A-Z)",
"desc": "依上次執行狀態排序 (Z-A)"
},
"nextDagRun": {
"asc": "依下次執行時間排序 (由近而遠)",
"desc": "依下次執行時間排序 (由遠而近)"
},
"placeholder": "排序方式"
},
"taskInstances": {
"allStates": "全部狀態",
"columns": {
"dagId": "Dag ID",
"dagRun": "Dag 執行",
"dagVersion": "Dag 版本",
"duration": "持續時間",
"endDate": "結束日期",
"mapIndex": "Map 索引",
"operator": "運算子",
"pool": "資源池",
"startDate": "開始日期",
"state": "狀態",
"taskId": "任務 ID",
"tryNumber": "嘗試次數"
},
"searchPlaceholder": "搜尋任務"
}
}