[BUG] Metric group and field names are not localized in the React monitor detail page
Maintainers usually reply within 2 days
@butterfly-520-boy is already working on this.
Since Oct 18, 2026.
- #4473 by @butterfly-520-boy — open
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react
- Domain
- frontend, localization
Research direction
Start in the React monitor detail page, tracing where metric group and field identifiers are converted into labels. Read the existing template translations returned by /api/i18n/zh-CN and the related localization code. Done means the selected language is used, missing translations fall back to raw names, and metric identifiers remain unchanged; verify with the monitor detail UI tests if available.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
The React monitor detail page displays raw metric group and field names even when translated names already exist in the monitoring template.
For example, with the interface set to Simplified Chinese, an HTTP monitor shows “summary” and “responseTime” instead of “概要” and “响应时间”.
Switching to English also leaves the raw names unchanged instead of displaying “Summary” and “Response Time”.
Expected Behavior
Use the existing template translations for metric group and field names, following the selected interface language.
If a translation is missing, fall back to the original name. The underlying metric identifiers should remain unchanged.
Steps To Reproduce
1.Run the HertzBeat 2.0 React frontend with a backend.
2.Create an HTTP website monitor pointing to a reachable endpoint and wait for metric data.
3.Set the interface language to Simplified Chinese and open the monitor detail page.
4.Check the group headings and field names. They still display raw names such as “summary” and “responseTime”.
5.Switch to English and check the names again.
Environment
HertzBeat version(s): 2.0-SNAPSHOT, React frontend
Affected master revision: d823f2dcd52903c01d2f79b93019d379208584dc
Operating system: Windows
Deployment: Local frontend connected to a real HertzBeat backend
Debug logs
The /api/i18n/zh-CN endpoint already returns the corresponding translations, including “概要” for the website summary group and “响应时间” for its responseTime field.
Anything else?
Related background: #1212.
The earlier template translation task is completed. This report concerns using those existing translations in the React frontend, rather than adding new translations to the YAML templates.
A local fix is in progress.
- Dominant language
- Java
- Stars
- 7.4k
- Forks
- 1.4k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 37
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/hertzbeat
-
[Feature] <title>When selecting monitoring items, the "Select All on Current Page" checkbox will only display issuesPossibly taken @butterfly-520-boy claimed this 16 days ago. Opennew feature
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
apache/hertzbeat#4425 · 5 comments ·
Maintainers usually reply within 2 days
-
[Feature] <title>The "Select All" option is at the bottom, while more operations are above, which is quite inconvenient. Move the "Select All" box to the top to enhance the user experiencePossibly taken @butterfly-520-boy claimed this 16 days ago. Opennew feature
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
apache/hertzbeat#4424 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/hertzbeat#4340 · 1 comment ·
Maintainers usually reply within 2 days
-
[Feature] Support saving monitor history charts as PNG in the React frontendPossibly taken @butterfly-520-boy claimed this 3 days ago. Opennew feature
Difficulty 3/5 1-2 days Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
[BUG] Layout and localization issues on the React monitor detail pagePossibly taken @butterfly-520-boy claimed this 5 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 2 days
All issues in apache/hertzbeat
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ReChronoRain/HyperCeiler#1743 ·
Maintainers usually reply within 6 days
-
Weaviate: bump test image to 1.39.13 (CVE-2026-111943) and identify solon-ai via integration headerOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JabRef/jabref#17546 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
hiero-ledger/hiero-sdk-java#3010 ·
Maintainers usually reply within 1 day