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

   ## Summary
   
   The AI assistant page (ai/index.tsx) was only partially localized: the chat 
input placeholder, quick-action chips, tool modal and several labels/toasts 
were still hard-coded zh, so they leaked Chinese into English mode.
   
   This PR completes the page localization:
   - Quick-action chips are now driven by `QUICK_ACTION_KEYS` and render (and 
send) the active-language phrase via `t(key)`.
   - `AiMessage` gets its own `useLang` for the chain-of-thought summary label 
and the pending indicator.
   - Tool execution toasts, the not-enabled banner, the settings hint sentence 
(split so the inline link stays a link), the model/engine selectors, readiness 
tag, input placeholder, toolbar buttons, stop button and the whole 
tool-execution modal (title, cluster/tool selects, JSON textarea, result label) 
are all routed through translation keys.
   - 35 new `ai.*` keys added; existing `ai.*` keys reused.
   
   ## Why
   
   The assistant is the main interactive Studio surface; every label and piece 
of feedback should follow the active language.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `vitest run` AiPage + AiMessage - 19/19 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