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

   ## Summary
   
   Localize the message page's feedback messages (`instance/message.tsx`):
   
   - 7 hard-coded `message.success/info/warning/error` toasts → `t()` calls 
with new `message.*` zh/en keys (query completion, history load, 
consumption-verify warning, direct-consume validation/result/failure, download)
   - The `getErrorMessage(error, '直接消费请求失败…')` fallback now passes 
`t('message.directConsumeFailed')`
   
   ## Why
   
   The page was already `useLang()`-wired with a `message.*` key set, but these 
operation toasts still rendered hard-coded Chinese in the English UI.
   
   ## Testing
   
   - `vitest run src/pages/instance/__tests__/MessagePage.test.tsx 
src/pages/instance/__tests__/MessagePageAsyncState.test.tsx` → 20/20 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