tju-yxq opened a new issue, #5559: URL: https://github.com/apache/rocketmq-dashboard/issues/5559
## Problem The queue browser — the shared component the message page uses to browse a topic's queues and pull messages at an offset (`components/QueueBrowser.tsx`) — is completely unlocalized. It does not import the i18n layer at all, so every string it renders is Chinese regardless of the display language, and one is English-only: | Where | Strings | | --- | --- | | Controls | `选择 Topic` placeholder, `加载队列` button | | Empty state | `选择 Topic 并点击「加载队列」,按队列浏览消息` | | Queue table | `Offset 范围` column, `操作` column, `查看` button, the `offset: N` slider tooltip (English-only) | | Summary | `共 N 个队列,总消息量 M 条` | | Detail pane | the `点击左侧「查看」…` empty state, `存储时间` / `大小` labels, `该 offset 处无消息` | | Toast fallbacks | `加载队列信息失败`, `拉取消息失败` | An operator who switches the console to English gets an entirely Chinese queue browser embedded in the otherwise-localized message page. ## Expected behavior The queue browser renders through `useLang()`'s `t()` + `translations.ts` like the rest of the console. ## Notes - The hook (`useQueueBrowser`) and the two components (`QueueBrowserControls`, `QueueBrowserResults`) each take `t` from `useLang`; the hook's `loadQueues` callback gains `t` in its dependency list. - A new `queueBrowser.*` section (13 keys) slots into `translations.ts`; the zh text is byte-identical to what was hardcoded. -- 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]
