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

   ## Summary
   
   Localize the topic page's feedback messages (`instance/topic.tsx`):
   
   - 25 hard-coded `message.success/error/warning` toasts → `t()` calls with 
new `topic.*` zh/en keys (load/detail failures, 
rebuild/sync/delete/create/import/export/batch-delete results, message sending, 
message-property errors)
   - Reuses the existing `topic.deleted` / `topic.batchDeleted` keys where zh 
text matched exactly
   
   ## Why
   
   The page was already `useLang()`-wired with a full `topic.*` key set, but 
every operation toast still rendered hard-coded Chinese in the English UI.
   
   ## Testing
   
   - `vitest run src/pages/instance/__tests__/TopicPage.test.tsx` → 16/16 passed
   - `tsc --noEmit` → clean
   - `eslint` on changed files → 0 errors
   - 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