yyqdbngt opened a new pull request, #3215: URL: https://github.com/apache/rocketmq-dashboard/pull/3215
## Summary The shared QueueBrowser component (used by the message query page in queue-browse mode) had no i18n wiring: selectors, buttons, table headers, empty states and toasts were hard-coded zh. Localized in components/QueueBrowser.tsx: - `useQueueBrowser`: load-queues and pull-message failure fallbacks now come from translation keys (the hook calls `useLang`; the two callbacks list `t` in their deps). - `QueueBrowserControls`: the Topic placeholder and the 加载队列 button. - `QueueBrowserResults`: the empty hints (no queues / no details), the Offset 范围 table column and 操作 column (reusing `common.actions`), the 查看 action, the queue summary line (count and total messages parameterized), and the message detail card labels (存储时间 / 大小) plus the no-message-at-offset text. - 12 new `queueBrowser.*` keys; zh byte-identical. ## Why The queue-browse mode is part of the message page; its guidance and labels must follow the active language. ## Testing - `tsc --noEmit` passes - `eslint` - 0 errors (2 pre-existing fast-refresh warnings on the existing hook/helper exports) - `vitest run` MessagePage + QueueBrowser - 17/17 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]
