yyqdbngt opened a new pull request, #3230: URL: https://github.com/apache/rocketmq-dashboard/pull/3230
## Summary The topic route diagnostics panel renders issue titles/descriptions, recommendations and status text built by a pure utility that returned hard-coded zh. Localized in utils/topicRouteDiagnostics.ts: - `analyzeTopicRoutes` accepts `lang` (default `zh`); status text resolves through a new English status map in en. - `distributionIssues` accepts `lang`; all per-Broker issue titles/descriptions (missing Broker/Master address, unavailable write/read queues, missing write/read permission, mismatched queue counts, duplicate addresses) return active-language text. - Topic-level issues (no route, write/read skew, no writable/readable route, single Broker) are bilingual, and `buildRecommendations` returns active-language guidance. - pages/instance/topic.tsx passes the current language into the analyzer. - No behavior change in zh. ## Why The route diagnostics are the health surface of the topic detail view; issue text and advice must follow the active language. ## Testing - `tsc --noEmit` passes - `eslint` clean on the changed files - `vitest run` topicRouteDiagnostics + TopicPage - 26/26 tests pass -- 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]
