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

   ## Summary
   
   Localize the instance page's feedback messages (`instance/index.tsx`):
   
   - 14 hard-coded `message.success/error/warning` toasts → `t()` calls with 
new `instance.*` zh/en keys (list/credential/region/cloud-instance load 
failures, add/update/delete/batch-delete/import feedback)
   - The five `describeApiError(error, '…')` fallbacks now pass `t(...)` keys
   
   ## Why
   
   The page was already `useLang()`-wired with an `instance.*` key set, but 
every operation toast still rendered hard-coded Chinese in the English UI.
   
   ## Testing
   
   - `vitest run src/pages/instance/__tests__/InstancePage.test.tsx` → 21/21 
passed
   - `tsc --noEmit` → clean
   - zh fallback text 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