tju-yxq opened a new issue, #5512:
URL: https://github.com/apache/rocketmq-dashboard/issues/5512
## Problem
The DLQ page (`web/src/pages/instance/dlq.tsx`) is only partially localized:
its title, search placeholder, and the resend-failure summary already go
through `useLang()`'s `t()`, but roughly thirty other user-facing strings are
still hardcoded Chinese. An operator who switches the console to English gets a
page where the buttons, column headers, modal labels, and — most importantly —
the error/success toasts remain Chinese:
| Area | Examples |
| --- | --- |
| Table columns | `Group 名称`, `死信数量`, `最近入队时间`, `重投次数`, `入队时间`, `属性` / `值` |
| Action buttons | `消息明细`, `重投消息`, `导出`, `重发`, `导出全部`, `导出选中 (N)`, `批量重发选中
(N)` |
| Filter bar | `导出时间范围`, pagination totals `共 N 个 Group` / `共 N 条消息` |
| Retry modal | title `重投死信消息`, warning `⚠️ 重投操作将把死信消息重新发送到指定 Topic…`,
labels `源 Group` / `死信数量` / `重投时间范围` / `目标 Topic`, ok text `确认重投` |
| Detail drawer | title `DLQ 消息明细 · <group>`, `最近入队时间`, the range banner,
`该消息无用户属性`, `属性过多或单值过长,服务端已截断展示` |
| Toasts | `已导出 <group> 的死信消息(N 字节)`, `重投完成:…`, `重投扫描不完整:…`, `导出可能不完整:…`,
`重发完成:成功 N 条`, plus the load/detail/resend/export failure defaults |
The failure-path defaults (`死信队列加载失败,请稍后重试` etc.) matter most: they are the
strings shown when something is actually broken.
## Expected behavior
All user-facing strings on the DLQ page go through the i18n layer (`t()` +
`translations.ts`), like the sibling instance pages that are already fully
localized.
## Notes
- The `dlq.*` section of `translations.ts` already exists (title, subtitle,
resend-failure summaries), so the new keys slot in next to it.
- Several toasts interpolate values (group name, byte size, counts) and the
drawer title interpolates the group name, so those keys need `{param}`
placeholders.
--
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]