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

   ## Summary
   
   Localize the instance type tag (`instance/index.tsx`):
   
   - The `typeLabel` map now carries `textKey` instead of hard-coded `text`; 
the table type cell renders through `t()` (the previous local variable named 
`t` also shadowed the i18n function — renamed to `cfg`)
   
   Four new `instance.*` zh/en keys added (also defined by the earlier filter 
PR with identical text).
   
   ## Why
   
   The instance type column rendered hard-coded Chinese (云服务) and shadowed the 
translation function in the English UI.
   
   ## Testing
   
   - `vitest run src/pages/instance/__tests__/InstancePage.test.tsx` → 21/21 
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]

Reply via email to