yyqdbngt opened a new pull request, #3180: URL: https://github.com/apache/rocketmq-dashboard/pull/3180
## Summary The message trace drawer renders each demo trace step with a zh status line (e.g. `CommitLog 写入成功`, `消费成功 (23ms)`, `消费失败 (余额不足)`) even when the UI language is English. The trace titles were localized separately; the step status lines are the remaining demo content that still leaks Chinese. This PR localizes the step status line for en mode: - Adds a small zh → en phrase table (`TRACE_DESC_EN`) covering the closed set of status phrases used by the demo trace data (write/consume/push/send/sync/alert outcomes, timeout-retry flows, failure reasons). - A pure helper (`toEnglishTraceDescription`) rewrites those phrases while leaving embedded identifiers, hosts and durations untouched. - The trace step description renders through the helper when `lang === en`, falling back to the raw value otherwise. ## Why Demo data should read in the active language instead of leaking Chinese mock labels into English mode, consistent with the demo localization done for trace titles and the consumer/topic pages. ## Testing - `tsc --noEmit` passes - `eslint` clean on the changed file - `vitest run` MessagePage + MessagePageAsyncState - 27/27 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]
