Skip to content

i18n: Closing zh-TW translation gaps #51677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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 @@ -51,6 +51,7 @@ import zhTWAssets from "./locales/zh-TW/assets.json";
import zhTWBrowse from "./locales/zh-TW/browse.json";
import zhTWCommon from "./locales/zh-TW/common.json";
import zhTWComponents from "./locales/zh-TW/components.json";
import zhTWDag from "./locales/zh-TW/dag.json";
import zhTWDags from "./locales/zh-TW/dags.json";
import zhTWDashboard from "./locales/zh-TW/dashboard.json";

Expand Down Expand Up @@ -115,6 +116,7 @@ const resources = {
browse: zhTWBrowse,
common: zhTWCommon,
components: zhTWComponents,
dag: zhTWDag,
dags: zhTWDags,
dashboard: zhTWDashboard,
},
Expand Down
28 changes: 24 additions & 4 deletions airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"host": "主機",
"port": "埠"
},
"connection_one": "連線",
"connection_other": "連線",
"delete":{
"deleteConnection_one": "刪除 1 個連線",
"deleteConnection_other": "刪除 {{count}} 個連線",
Expand All @@ -40,7 +42,18 @@
"noRowMessage": "找不到連線",
"searchPlaceholder": "搜尋連線",
"test": "測試連線",
"testDisabled": "測試連線功能已停用。請聯繫管理員以啟用。"
"testDisabled": "測試連線功能已停用。請聯繫管理員以啟用。",
"typeMeta": {
"error": "取得連線類型中繼資料失敗",
"standardFields": {
"description": "描述",
"host": "主機",
"login": "登入",
"password": "密碼",
"port": "埠",
"url_schema": "Schema"
}
}
},
"deleteActions":{
"button": "刪除",
Expand All @@ -49,7 +62,8 @@
"secondConfirmMessage": "此動作無法復原。",
"thirdConfirmMessage": "您確定要繼續嗎?"
},
"selected": "已選取"
"selected": "已選取",
"tooltip": "刪除所選連線"
},
"formActions":{
"reset": "重置",
Expand Down Expand Up @@ -80,6 +94,8 @@
"slots": "配額"
},
"noPoolsFound": "找不到資源池",
"pool_one": "資源池",
"pool_other": "資源池",
"searchPlaceholder": "搜尋資源池",
"sort": {
"asc": "名稱 (A-Z)",
Expand All @@ -103,10 +119,12 @@
"deleteVariable_other": "刪除 {{count}} 個變數",
"firstConfirmMessage_one": "您即將刪除以下變數:",
"firstConfirmMessage_other": "您即將刪除以下變數:",
"title": "刪除變數"
"title": "刪除變數",
"tooltip": "刪除所選變數"
},
"edit": "編輯變數",
"export": "匯出",
"exportTooltip": "匯出所選變數",
"form": {
"invalidJson": "無效的 JSON",
"keyMaxLength": "鍵最多只能包含 250 個字元",
Expand Down Expand Up @@ -136,6 +154,8 @@
"uploadPlaceholder": "上傳包含變數的 JSON 檔案 (例如:{\"key\": \"value\", ...})"
},
"noRowsMessage": "找不到變數",
"searchPlaceholder": "搜尋鍵"
"searchPlaceholder": "搜尋鍵",
"variable_one": "變數",
"variable_other": "變數"
}
}
21 changes: 21 additions & 0 deletions airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/assets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
{
"consumingDags": "消費者 Dags",
"createEvent": {
"button": "建立事件",
"manual": {
"description": "直接建立資源事件",
"extra": "資源事件額外資訊",
"label": "手動"
},
"materialize": {
"description": "觸發資源上游的 Dag",
"descriptionWithDag": "觸發此資源上游的 Dag: {{dagName}}",
"label": "實體化",
"unpauseDag": "觸發時取消暫停 {{dagName}}"
},
"success": {
"manualDescription": "已成功手動建立資源事件。",
"manualTitle": "已建立資源事件",
"materializeDescription": "已成功觸發上游 Dag {{dagId}}。",
"materializeTitle": "正在實體化資源"
},
"title": "為 {{name}} 建立資源事件"
},
"group": "群組",
"lastAssetEvent": "最後資源事件",
"name": "名稱",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dag": "Dag",
"key": "鍵",
"value": "值"
}
},
"title": "XCom"
}
}
105 changes: 99 additions & 6 deletions airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,44 @@
"auditLog": "審計日誌",
"xcoms": "XComs"
},
"createdAssetEvent_one": "已建立資源事件",
"createdAssetEvent_other": "已建立資源事件",
"dag_one": "Dag",
"dag_other": "Dags",
"dagDetails": {
"catchup": "自動回填",
"concurrency": "並行數",
"dagRunTimeout": "Dag 執行超時",
"defaultArgs": "預設參數",
"description": "描述",
"documentation": "Dag 文件",
"fileLocation": "檔案位置",
"hasTaskConcurrencyLimits": "有任務並行數限制",
"lastExpired": "最後過期時間",
"lastParsed": "最後解析時間",
"latestDagVersion": "最新 Dag 版本",
"latestRun": "上次 Dag 執行",
"maxActiveRuns": "活躍執行數上限",
"maxActiveTasks": "活躍任務數上限",
"maxConsecutiveFailedDagRuns": "連續失敗執行數上限",
"nextRun": "下次 Dag 執行",
"owner": "擁有者",
"params": "參數",
"schedule": "排程",
"tags": "標籤"
},
"dagId": "Dag ID",
"dagRun": {
"conf": "設定",
"dagVersions": "Dag 版本",
"dataIntervalEnd": "資料區間結束",
"dataIntervalStart": "資料區間起始",
"lastSchedulingDecision": "最後排程決策",
"queuedAt": "開始排隊時間",
"runAfter": "最早可執行時間",
"runType": "執行類型"
"runType": "執行類型",
"sourceAssetEvent": "來源資源事件",
"triggeredBy": "觸發者"
},
"dagRun_one": "Dag 執行",
"dagRun_other": "Dag 執行",
Expand All @@ -44,6 +69,13 @@
},
"duration": "時間範圍",
"endDate": "結束日期",
"error": {
"back": "返回",
"defaultMessage": "發生未預期的錯誤",
"home": "首頁",
"notFound": "找不到頁面",
"title": "錯誤"
},
"expression": {
"all": "全部",
"and": "且",
Expand Down Expand Up @@ -74,8 +106,11 @@
},
"noItemsFound": "找不到 {{modelName}}",
"note": {
"label": "備註",
"placeholder": "新增備註..."
"add": "新增筆記",
"dagRun": "Dag 執行筆記",
"label": "筆記",
"placeholder": "新增筆記...",
"taskInstance": "任務實例筆記"
},
"pools": {
"deferred": "已延後",
Expand All @@ -102,6 +137,8 @@
"users": "使用者"
},
"selectLanguage": "選擇語言",
"sourceAssetEvent_one": "來源資源事件",
"sourceAssetEvent_other": "來源資源事件",
"startDate": "開始日期",
"state": "狀態",
"states": {
Expand All @@ -125,15 +162,13 @@
"table": {
"completedAt": "完成時間",
"createdAt": "建立時間",
"duration": "持續時間",
"filterByTag": "依標籤篩選 Dags",
"filterColumns": "篩選表格欄位",
"filterReset_one": "重置篩選",
"filterReset_other": "重置篩選",
"from": "從",
"maxActiveRuns": "最大活躍執行數",
"noTagsFound": "找不到標籤",
"reprocessBehavior": "重新處理行為",
"tagMode": {
"all": "全部",
"any": "任何"
Expand All @@ -142,6 +177,8 @@
"to": "到"
},
"task": {
"documentation": "任務文件",
"lastInstance": "最後實例",
"operator": "運算子",
"triggerRule": "觸發規則"
},
Expand All @@ -150,7 +187,26 @@
"taskId": "任務 ID",
"taskInstance": {
"dagVersion": "Dag 版本",
"pool": "資源池"
"executor": "執行器",
"executorConfig": "執行器設定",
"hostname": "主機名稱",
"maxTries": "最大嘗試次數",
"pid": "PID",
"pool": "資源池",
"poolSlots": "資源池配額",
"priorityWeight": "優先權權重",
"queue": "排隊",
"queuedWhen": "開始排隊時間",
"scheduledWhen": "排程時間",
"triggerer": {
"assigned": "指派的觸發器",
"class": "觸發器類別",
"createdAt": "觸發器建立時間",
"id": "觸發器 ID",
"latestHeartbeat": "最新觸發器心跳時間",
"title": "觸發器資訊"
},
"unixname": "Unix 名稱"
},
"taskInstance_one": "任務實例",
"taskInstance_other": "任務實例",
Expand All @@ -166,6 +222,43 @@
"placeholder": "搜尋時區",
"title": "選擇時區",
"utc": "UTC"
},
"toaster": {
"bulkDelete": {
"error": "批次刪除 {{resourceName}} 請求失敗",
"success": {
"description": "已成功刪除 {{count}} 個 {{resourceName}}。鍵:{{keys}}",
"title": "已提交批次刪除 {{resourceName}} 請求"
}
},
"create": {
"error": "建立 {{resourceName}} 請求失敗",
"success": {
"description": "{{resourceName}} 已成功建立。",
"title": "已提交建立 {{resourceName}} 請求"
}
},
"delete": {
"error": "刪除 {{resourceName}} 請求失敗",
"success": {
"description": "{{resourceName}} 已成功刪除。",
"title": "已提交刪除 {{resourceName}} 請求"
}
},
"import": {
"error": "匯入 {{resourceName}} 請求失敗",
"success": {
"description": "已成功匯入 {{count}} 個 {{resourceName}}。",
"title": "已提交匯入 {{resourceName}} 請求"
}
},
"update": {
"error": "更新 {{resourceName}} 請求失敗",
"success": {
"description": "{{resourceName}} 已成功更新。",
"title": "已提交更新 {{resourceName}} 請求"
}
}
},
"triggered": "已觸發",
"tryNumber": "嘗試次數",
Expand Down
Loading