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

   ## Summary
   
   The message query page (instance/message.tsx) only localized its page 
header; every other label, placeholder, toast and table header was hard-coded 
zh, so the page stayed Chinese in English mode.
   
   This PR localizes the whole page:
   - Query-mode segments, form placeholders, toolbar buttons (查询 / 重置 / 服务端历史), 
topic errors and the result table headers now route through translation keys.
   - The trace tab is fully localized: tab labels, trace input placeholders, 
run-trace button, loading/empty states, step cost line, and the new trace 
diagnostics panel (health score, stage statistics, slowest-stage summary, issue 
table with severity labels).
   - The detail modal (tabs 消息内容 / 消息轨迹 / 验证, field labels, body title, close / 
consume-directly footer) and the direct-consume modal (notice, placeholders, 
execute) are localized too.
   - Consumer status tags map through label keys; validation helpers take the 
translator so their messages follow the language.
   - Reuses existing keys where wording matches (`message.title`, 
`message.detail`) and adds ~75 new `message.*` keys for the rest.
   - Demo trace-step titles/descriptions are untouched here (they are covered 
by the trace-title and trace-description demo localization PRs).
   
   ## Why
   
   The query page is the primary message-inspection surface; search feedback 
and result metadata must be readable in the active language.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `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]

Reply via email to