Skip to content

feat(ui): translate layout and dashboard headers to Chinese#273

Open
zxsharp wants to merge 2 commits into
volcano-sh:mainfrom
zxsharp:feature/i18n-chinese-layout
Open

feat(ui): translate layout and dashboard headers to Chinese#273
zxsharp wants to merge 2 commits into
volcano-sh:mainfrom
zxsharp:feature/i18n-chinese-layout

Conversation

@zxsharp
Copy link
Copy Markdown

@zxsharp zxsharp commented May 19, 2026

What this PR does / why we need it

This PR translates the main Sidebar Layout (Layout.jsx) and the Dashboard Header (DashboardHeader.jsx) into Chinese (Simplified).

This is submitted as the Prerequisite Task for the LFX Mentorship Term 2 application.

Approach

To avoid colliding with the larger react-i18next architecture proposals and the ongoing Next.js migration (#174), I intentionally kept this PR microscopic. I translated the sections using strict inline mapping right at the render layer. This leaves the underlying component logic untouched, making it trivial to review and merge into the current main branch without breaking anything or causing merge conflicts.

Screenshots

Screenshot from 2026-05-19 23-02-25

Signed-off-by: zxsharp <ishanshdimaniya@gmail.com>
@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign william-wang for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot
Copy link
Copy Markdown
Contributor

Welcome @zxsharp! It looks like this is your first PR to volcano-sh/dashboard 🎉

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request translates various UI elements in the Volcano dashboard into Chinese, including menu items and headers. The review feedback suggests using '仪表盘' instead of '仪表板' to maintain consistency with industry standards and Kubernetes terminology. Additionally, the reviewer noted that hardcoding these strings directly into the components is a regression for internationalization and highlighted inconsistencies where terms like 'Pods' were left untranslated.

{ text: "Dashboard", icon: <HomeIcon />, path: "/dashboard" },
{ text: "Jobs", icon: <AssignmentIcon />, path: "/jobs" },
{ text: "Queues", icon: <CloudIcon />, path: "/queues" },
{ text: "仪表板", icon: <HomeIcon />, path: "/dashboard" },
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The term '仪表盘' is the standard translation for 'Dashboard' in the Kubernetes and cloud-native ecosystem (e.g., the official Kubernetes Dashboard). Additionally, hardcoding these strings directly replaces the English UI, which is a regression for international users. Furthermore, 'Pods' (line 44) remains untranslated, creating an inconsistent experience. Consider using a translation mapping to support multiple languages in the future.

Suggested change
{ text: "仪表板", icon: <HomeIcon />, path: "/dashboard" },
{ text: "仪表盘", icon: <HomeIcon />, path: "/dashboard" },

}}
>
Volcano Dashboard
Volcano 仪表板
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Use '仪表盘' instead of '仪表板' to maintain consistency with standard terminology and the sidebar items.

Suggested change
Volcano 仪表板
Volcano 仪表盘

>
<TitleComponent text="Volcano Dashboard" />
<Tooltip title="Refresh Data">
<TitleComponent text="Volcano 仪表板" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Use '仪表盘' for consistency with the main layout and industry standards.

Suggested change
<TitleComponent text="Volcano 仪表板" />
<TitleComponent text="Volcano 仪表盘" />

Signed-off-by: zxsharp <ishanshdimaniya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants