yyqdbngt opened a new pull request, #3030: URL: https://github.com/apache/rocketmq-dashboard/pull/3030
## Summary Localize the consumer delay formatter (`instance/consumer.tsx`): - `formatDelay` now takes the `t` function (and `lang` for the join separator) and renders localized duration units: zh keeps its compact "22小时55分钟" style, en gets plural-aware "22 hours 55 minutes" - Both call sites (lag table cell + overview descriptions) pass `t`/`lang` Ten new `consumer.*` zh/en keys added (day/hour/minute/second singular+plural, zero-duration). ## Why The lag column and overview rendered Chinese duration strings 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 (compact form preserved) -- 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]
