yyqdbngt opened a new pull request, #3233:
URL: https://github.com/apache/rocketmq-dashboard/pull/3233

   ## Summary
   
   The client connections page renders diagnostics issues (each with title, 
description and recommendation) built by a pure utility that returned 
hard-coded zh.
   
   Localized in utils/clientConnectionDiagnostics.ts:
   - `analyzeClientConnections` accepts `lang` (default `zh`); status text 
resolves through a new English status map in en.
   - All five collectors (`addInventoryIssues`, `addClientIdIssues`, 
`addUnknownFieldIssues`, `addResourceIssues`, `addAddressConcentrationIssues`) 
accept `lang`; every issue title/description/recommendation returns 
active-language text (empty inventory, partial scans, client-ID collisions, 
duplicate records, unknown protocol/language/version, unparseable times, mixed 
protocols/versions, single consumer instance, mixed languages, address 
concentration).
   - `buildRecommendations` is bilingual, including its default fallback.
   - pages/cluster/clients.tsx passes the current language (memo deps updated).
   - No behavior change in zh.
   
   ## Why
   
   The client inventory diagnostics are the health surface of the connections 
page; issue text and advice must follow the active language.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `vitest run` clientConnectionDiagnostics + ClientsPage - 23/23 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]

Reply via email to