tju-yxq opened a new issue, #5528: URL: https://github.com/apache/rocketmq-dashboard/issues/5528
## Problem The consumer page (`web/src/pages/instance/consumer.tsx`) is only partially localized: 49 of its strings go through `useLang()`'s `t()`, but roughly **180 more are hardcoded Chinese** across every region of the page. An operator who switches the console to English gets mixed-language output on the busiest page of the console: | Area | Examples | | --- | --- | | Settings tab | labels (`重试队列数`, `最大重试次数`, `启用消费`, `顺序消费`, `广播消费`), the high-risk change confirmation (`确认修改高危消费配置?` + risk bullets), save/failure toasts | | Reset offset modal | the whole flow — warning banner, `目标 Group`/`目标 Topic`, time quick-select buttons (`1 小时前` … `3 天前`, `跳过积压`), preview metrics (`当前总堆积`, `重置后总堆积`, `位点净变化`, `回放 Queue`), per-queue preview messages (`将回放 N 条消息`, `将跳过 N 条未消费消息`), status tags (`完整`/`有限`/`不完整`) | | Health tab | stat cards (`健康分`, `已知堆积`, `Queue 覆盖`, `客户端`), consistency check banner (`发现 N 个订阅配置不一致` …), recommendations header | | Thread stack modal | title, capture metadata, the proxy-client unsupported notice | | Import modal | title, status tags (`成功`/`失败`/`无效`/`待导入`), the detected-rows alerts, CSV parse fallback | | Create modal | labels, validation messages, type/delivery-order options (`普通消息` … `分区顺序`) | | Main table & toolbar | column titles, action buttons (`详情`, `重置位点`), batch delete confirm (`确定要删除选中的 N 个 Group 吗?`), import/export/create buttons, auto-refresh toggle, pagination totals | | Module helpers | `不可用` lag label, reset-preview risk labels (`失败`/`需确认`/`正常`), issue severity labels (`风险`/`关注`/`提示`) | These are exactly the strings an English-locale operator needs on the failure and confirmation paths. ## Expected behavior All user-facing strings on the consumer page go through the i18n layer (`t()` + `translations.ts`), completing the page-level sweep started by the topic (#5507), DLQ (#5512), and seven-small-pages (#5516) localizations. ## Notes - The health tab's issue titles/descriptions and status text come from `utils/consumerGroupDiagnostics.ts`, which returns Chinese strings directly — that util-level gap is a separate, systematic issue (six diagnostics utils behave the same way) and is out of scope here. - The subscription `consistency` and `filterMode` values are matched against API-returned data (including Chinese values) — parsing, not display — and stay untouched. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
