yyqdbngt opened a new pull request, #3029: URL: https://github.com/apache/rocketmq-dashboard/pull/3029
## Summary Localize the consumer offset-reset preview's risk labels and queue messages (`instance/consumer.tsx`): - `resetPreviewRiskLabel` now returns a translation key, rendered through `t()` in the risk column tag - `resetPreviewQueueMessage` now takes the `t` function and returns localized messages for preview failures, unavailable targets, replay/skip counts, unchanged offsets and min/max-target hints Ten new `consumer.*` zh/en keys added. ## Why The reset-preview risk tags and per-queue message column rendered in 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 errors - zh render unchanged -- 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]
