This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-4-test by this push:
new 6c2af4a5021 [v3-4-test] Add missing zh-CN UI translations (#74294)
(#76664)
6c2af4a5021 is described below
commit 6c2af4a50215c6468b2ac7b04069069a871cf7c4
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Nov 7 07:50:21 2026 +0000
[v3-4-test] Add missing zh-CN UI translations (#74294) (#76664)
* Add missing Simplified Chinese UI translations
* Fix Chinese Dag version comparison summary
* Format the zh-CN paused Dag run count as a number
The locale test for counter placeholders rejects the plain count
placeholder, and the English string already uses the number format.
---------
(cherry picked from commit 1dd571534128229abdced450c3e87d922e601bc1)
Signed-off-by: 1fanwang <[email protected]>
Co-authored-by: Stefan Wang <[email protected]>
---
.../ui/public/i18n/locales/zh-CN/admin.json | 1 +
.../ui/public/i18n/locales/zh-CN/assets.json | 1 +
.../ui/public/i18n/locales/zh-CN/common.json | 16 ++++++-
.../ui/public/i18n/locales/zh-CN/components.json | 16 ++++++-
.../airflow/ui/public/i18n/locales/zh-CN/dag.json | 56 ++++++++++++++++++++++
.../airflow/ui/public/i18n/locales/zh-CN/dags.json | 9 ++++
6 files changed, 97 insertions(+), 2 deletions(-)
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/admin.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/admin.json
index d0f9fff277e..28dfa4c28d3 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/admin.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/admin.json
@@ -34,6 +34,7 @@
"form": {
"connectionIdRequired": "连接 ID 是必填的",
"connectionIdRequirement": "连接 ID 不能只包含空格",
+ "connectionTypeFields": "{{connectionType}} 字段",
"connectionTypeRequired": "连接类型是必填的",
"extraFieldsJson": "额外字段 JSON",
"helperText": "找不到连接类型?请确保您已安装对应的 Airflow 整合套件。",
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/assets.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/assets.json
index b2eba60c6fe..02e013429db 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/assets.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/assets.json
@@ -49,6 +49,7 @@
"events": "事件",
"filters": {
"groupPlaceholder": "搜索分组",
+ "hasEvents": "有事件",
"lastEventDateRange": "最近事件日期"
},
"group": "分组",
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/common.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/common.json
index c8e0c4e8a3b..158b3cfab25 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/common.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/common.json
@@ -198,6 +198,7 @@
"plugins": "插件",
"security": "安全"
},
+ "no": "否",
"noItemsFound": "找不到 {{modelName}}",
"note": {
"add": "添加笔记",
@@ -318,6 +319,13 @@
},
"title": "标记状态"
},
+ "search": {
+ "matchAnywhere": {
+ "helper": "$t(search.advanced.description) 各搜索框的设置和共享链接中的设置仍优先使用。",
+ "label": "默认在任意位置匹配"
+ },
+ "title": "搜索"
+ },
"taskInstance": {
"defaultTab": {
"helper": "打开任务实例时首先显示的选项卡。指向特定选项卡的链接仍会打开该选项卡。",
@@ -483,9 +491,14 @@
"title": "团队"
},
"timeRange": {
+ "anyTime": "不限时间",
+ "in": "在",
+ "last7Days": "最近 7 天",
"last12Hours": "最近 12 小时",
"last24Hours": "最近 24 小时",
+ "last30Days": "最近 30 天",
"lastHour": "最近 1 小时",
+ "latestRun": "最近一次执行",
"pastWeek": "过去一周"
},
"timestamp": {
@@ -578,5 +591,6 @@
"tooltip": "按 {{hotkey}} 切换换行",
"unwrap": "不换行",
"wrap": "换行"
- }
+ },
+ "yes": "是"
}
diff --git
a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/components.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/components.json
index 027d8b0f55e..eadd7829c80 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/components.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/components.json
@@ -136,6 +136,17 @@
"hide": "隐藏",
"show": "显示"
},
+ "pausedDag": {
+ "drain": "完成后暂停",
+ "drainDescription": "未完成的执行将继续,但不会创建新的定时执行。已暂停的回填仍保持暂停。所有未完成的执行结束后,Dag
将再次暂停。",
+ "keepPaused": "保持暂停",
+ "keepPausedDescription": "新建和未完成的执行将等待 Dag 取消暂停。",
+ "title": "Dag 已暂停",
+ "unfinishedRunsWillRun_one": "1 次未完成的 Dag 执行将开始或恢复。",
+ "unfinishedRunsWillRun_other": "{{count, number}} 次未完成的 Dag 执行将开始或恢复。",
+ "unpause": "取消暂停",
+ "unpauseDescription": "Dag 将启用:未完成的执行将继续,定时调度将恢复。已暂停的回填仍保持暂停。"
+ },
"reparseDag": "重新解析 Dag",
"slowestTaskInstances": {
"empty": "此范围内没有已完成的任务实例",
@@ -161,6 +172,7 @@
"dataInterval": "数据区间",
"dataIntervalAuto": "根据逻辑日期和时间表自动推断",
"dataIntervalManual": "手动指定",
+ "editConfigAndTrigger": "编辑配置并触发",
"intervalEnd": "结束",
"intervalStart": "开始",
"loading": "正在加载 Dag 信息...",
@@ -180,7 +192,8 @@
"title": "已触发 Dag 执行"
}
},
- "triggerAgainWithConfig": "使用此配置再次触发"
+ "triggerAgainWithConfig": "使用此配置再次触发",
+ "triggerOptions": "触发选项"
},
"trimText": {
"details": "详细信息",
@@ -197,6 +210,7 @@
"versionSelect": {
"allVersions": "所有版本",
"dagVersion": "Dag 版本",
+ "placeholder": "选择版本",
"versionCode": "v{{versionCode}}"
}
}
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dag.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dag.json
index 973f300f6ea..04e26293750 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dag.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dag.json
@@ -6,6 +6,7 @@
"title": "依赖阻碍任务调度"
},
"calendar": {
+ "backfill": "回填",
"daily": "每日",
"hourly": "每小时",
"legend": {
@@ -223,6 +224,7 @@
"taskInstances": "任务实例",
"taskStateStore": "任务存储",
"tasks": "任务",
+ "versions": "版本",
"xcom": "XCom"
},
"taskGroups": {
@@ -250,5 +252,59 @@
"never": "永不"
},
"title": "任务存储"
+ },
+ "versions": {
+ "base": "比较起始版本",
+ "categories": {
+ "asset": "资源",
+ "authorization": "授权",
+ "callback": "回调",
+ "deadline": "截止期限",
+ "dependency": "依赖",
+ "metadata": "元数据",
+ "param": "参数",
+ "provenance": "来源",
+ "schedule": "调度",
+ "task": "任务",
+ "unknown": "未知"
+ },
+ "codeAccess": "查看值需要 Dag 代码访问权限",
+ "columns": {
+ "after": "之后",
+ "before": "之前",
+ "category": "类别",
+ "impact": "影响",
+ "operation": "操作",
+ "path": "路径"
+ },
+ "heading": "版本 {{base}} → 版本 {{target}}",
+ "impacts": {
+ "authorization": "授权",
+ "execution": "执行",
+ "metadata": "元数据",
+ "provenance": "来源",
+ "unknown": "未知"
+ },
+ "maxChanges": "最大变更数",
+ "maxChangesDefault": "默认",
+ "noChanges": "这些版本保存的状态相同。",
+ "operations": {
+ "added": "已添加",
+ "changed": "已修改",
+ "removed": "已移除"
+ },
+ "record_one": "记录",
+ "record_other": "记录",
+ "schemaChange": "序列化 Schema {{baseSchema}} → {{targetSchema}}",
+ "selectPrompt": "选择两个版本以查看它们之间的变更。",
+ "summary_one": "1 项变更",
+ "summary_other": "{{count, number}} 项变更",
+ "target": "比较目标版本",
+ "unavailable": {
+ "description": "无法比较这些版本。原因:",
+ "title": "无法比较",
+ "withoutReason": "无法比较这些版本。"
+ },
+ "valuesHidden": "值已隐藏"
}
}
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dags.json
b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dags.json
index f9d032c55a2..32a993434c1 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dags.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/zh-CN/dags.json
@@ -32,8 +32,17 @@
"pausedState": "暂停状态",
"requiresHitlAction": "需要人工响应",
"runIdPatternFilter": "搜索 Dag 执行",
+ "runState": "执行状态",
+ "runStatePlaceholder": "选择执行状态...",
"timetableType": "时间表类型"
},
+ "folders": {
+ "all": "所有 Dags",
+ "empty": "没有文件夹",
+ "hide": "隐藏文件夹",
+ "show": "显示文件夹",
+ "title": "文件夹"
+ },
"ownerLink": "拥有者 {{owner}} 的地址",
"runAndTaskActions": {
"affectedTasks": {