yyqdbngt opened a new pull request, #3226:
URL: https://github.com/apache/rocketmq-dashboard/pull/3226

   ## Summary
   
   The consumer group health tab renders issue titles/descriptions, 
recommendations and the status text built by a pure utility that returned 
hard-coded zh, so English-mode diagnostics still showed Chinese copy.
   
   Localized in utils/consumerGroupDiagnostics.ts:
   - `analyzeConsumerGroupHealth` accepts `lang` via options (default `zh`); 
the status text resolves through a new English status map for en.
   - `subscriptionIssues`, `progressIssues` and `runtimeIssues` accept `lang` 
and return active-language titles/descriptions (no subscription details, 
inconsistent / unknown subscription expressions, unavailable Queue lags, skewed 
/ high Group lag, lag with no online clients, stale heartbeats, high consume 
delay).
   - `recommendations` accepts `lang` and returns active-language guidance.
   - pages/instance/consumer.tsx passes the current language into the health 
analyzer (memo deps updated).
   - No behavior change in zh.
   
   ## Why
   
   The health diagnostics tab is the risk-assessment surface for consumer 
groups; issue text and advice must follow the active language.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `vitest run` consumerGroupDiagnostics + ConsumerPage - 32/32 tests pass


-- 
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]

Reply via email to