Skip to content

Commit

Permalink
refactor(i18n):优化节点页面部分文案的国际化翻译
Browse files Browse the repository at this point in the history
- 修改"驱逐"操作的确认文本,增加英文括号
- 将"cordon"标签翻译为"隔离状态"
-将"taints"标签翻译为"污点"
-调整部分技术术语的翻译,如"节点架构"、"kubelet版本"等
  • Loading branch information
weibaohui committed Dec 26, 2024
1 parent b43c0a6 commit d1ad873
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions assets/pages/cluster/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"icon": "fas fa-wind text-danger",
"actionType": "ajax",
"label": "驱逐",
"confirmText": "您确认要驱逐Drain$metadata.name?",
"confirmText": "您确认要驱逐(drain)$metadata.name?",
"api": "post:/k8s/node/drain/name/$metadata.name"
},
{
Expand Down Expand Up @@ -654,7 +654,7 @@
},
{
"name": "spec.unschedulable",
"label": "cordon",
"label": "隔离状态",
"type": "mapping",
"map": {
"true": "<span class='label label-danger'>SchedulingDisabled</span>",
Expand All @@ -663,7 +663,7 @@
},
{
"name": "spec.taints",
"label": "taints",
"label": "污点",
"type": "each",
"items": {
"type": "tpl",
Expand Down Expand Up @@ -697,32 +697,32 @@
},
{
"name": "status.nodeInfo.architecture",
"label": "arch",
"label": "节点架构",
"type": "text"
},
{
"name": "status.nodeInfo.kubeletVersion",
"label": "version",
"label": "kubelet版本",
"type": "text"
},
{
"name": "status.nodeInfo.osImage",
"label": "osImage",
"label": "镜像",
"type": "text"
},
{
"name": "status.nodeInfo.kernelVersion",
"label": "kernelVersion",
"label": "内核版本",
"type": "text"
},
{
"name": "status.nodeInfo.containerRuntimeVersion",
"label": "cri",
"label": "CRI版本",
"type": "text"
},
{
"name": "status.addresses",
"label": "addresses",
"label": "IP",
"type": "each",
"items": {
"type": "tpl",
Expand All @@ -731,7 +731,7 @@
},
{
"name": "status.images",
"label": "images",
"label": "容器镜像",
"type": "tpl",
"tpl": "${count(status.images)}"
},
Expand Down

0 comments on commit d1ad873

Please sign in to comment.