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

   ## Summary
   
   The message trace drawer renders diagnostics issues, recommendations and 
status text built by a pure utility that returned hard-coded zh.
   
   Localized in utils/messageTraceDiagnostics.ts:
   - `analyzeMessageTrace` accepts `lang` via options (default `zh`); the 
status text resolves through a new English status map in en.
   - `collectSummaryIssues`, `collectPhaseIssues`, `collectTimelineIssues` and 
`collectDeliveryIssues` accept `lang`; all issue titles/descriptions 
(failed/incomplete phases, unavailable or slow costs, large gaps, timestamp 
regressions, consumer delivery failures/pending/unknown/retried/unparseable 
time, missing nodes/status, slow end-to-end) return active-language text.
   - A parallel English recommendation map is used by `buildRecommendations` 
for en.
   - pages/instance/message.tsx passes the current language into the analyzer 
(memo deps updated).
   - No behavior change in zh.
   
   ## Why
   
   The trace drawer is a core message-diagnostics surface; its issue text and 
advice must follow the active language.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `vitest run` messageTraceDiagnostics + MessagePage - 14/14 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