Skip to content

fix(i18n): localize consumer detail overview and health diagnostics - #3202

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-consumer-detail-ovh-i18n
Open

fix(i18n): localize consumer detail overview and health diagnostics#3202
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-consumer-detail-ovh-i18n

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 5, 2026

Copy link
Copy Markdown

Summary

The consumer group page is being localized in slices (offset reset, create/import, list done previously); this PR covers the detail modal overview and health-diagnostics tabs.

Localized in instance/consumer.tsx:

  • Detail modal title fallback (Group 详情) and the 概览 / 健康诊断 tab labels.
  • Overview tab: statistic cards (在线实例 / 总堆积 / 订阅 Topic 数), the descriptions (Group 名称 / 所属集群 / 订阅模式 / 消费类型 / 订阅组类型 / 消费延迟 / 最大重试次数 with its unit suffix / 创建时间 / 订阅 Topic), the online-instances section header, and the subscription consistency panel (header, re-check button, all six status messages - failed / checking / inconsistent count / unknown count / all consistent / none - and the 仅看不一致 checkbox). Unavailable-lag placeholders reuse the existing groupMgmt.lagUnavailable key.
  • Health diagnostics tab: summary sentence + auto-refresh note, re-diagnose button, degraded-data banner, the four health cards (健康分 / 已知堆积 with 报告堆积 prefix / Queue 覆盖 with unknown-queue states / 客户端 with stale-heartbeat states), the no-risk success alert, the recommendations banner, and the health issues table (级别 / 诊断项 / 说明 headers and severity labels 风险 / 关注 / 提示 through a now-keyed helper).
  • Reuses existing keys where wording matches (consumer.name, consumer.subMode, consumer.subGroupType, consumer.delay, consumer.maxRetry, consumer.createdAt, ...); 40 new consumer.* keys; zh byte-identical.

Why

Overview and health diagnostics are the richest surface of the group detail view; operators rely on these labels and status texts in the active language.

Testing

  • tsc --noEmit passes
  • eslint clean on the changed files
  • vitest run ConsumerPage - 29/29 tests pass

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

fix(i18n): localize consumer detail overview and health diagnostics — consistent i18n localization. Clean, backward-compatible.

LGTM.


Automated review by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants