yyqdbngt opened a new pull request, #2981:
URL: https://github.com/apache/rocketmq-dashboard/pull/2981
## Summary
Localize the consumer group page's feedback messages
(`instance/consumer.tsx`):
- 20 hard-coded `message.success/error/warning` toasts → `t()` calls with
new `consumer.*` zh/en keys (export/import results, config load/save, offset
reset preview, reset confirmation, copy, delete/create feedback)
- The "不可用" (unavailable lag) label → `t('consumer.unavailable')` in all
four render sites
- Reuses the existing `consumer.deleted` key for group deletion toast (its
zh text matched exactly)
## Why
The page was already `useLang()`-wired with a full `consumer.*` key set, but
every operation toast and the unavailable-lag label still rendered hard-coded
Chinese in the English UI.
## Testing
- `vitest run src/pages/instance/__tests__/ConsumerPage.test.tsx` → 24/24
passed
- `tsc --noEmit` → clean
- `eslint` on changed files → 0 problems
- zh fallback text unchanged (default render identical)
--
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]