yyqdbngt opened a new pull request, #2986:
URL: https://github.com/apache/rocketmq-dashboard/pull/2986
## Summary
Localize the AI page's tool-execution feedback (`pages/ai/index.tsx`):
- `message.error('工具参数必须是有效的 JSON 对象')` (two validation sites) →
`t('ai.toolJsonRequired')`
- `message.success('工具执行成功')` → `t('ai.toolExecuted')`
- `message.error(... : '工具执行失败')` inline fallback → `t('ai.toolExecFailed')`
- Three new `ai.*` zh/en keys added
## Why
The page was already `useLang()`-wired, but tool argument validation and
execution toasts still rendered hard-coded Chinese in the English UI.
## Testing
- `vitest run src/pages/ai/__tests__/AiPage.test.tsx` → 13/13 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]