yyqdbngt opened a new pull request, #2977:
URL: https://github.com/apache/rocketmq-dashboard/pull/2977
## Summary
Localize the last hard-coded string on the clients page
(`cluster/clients.tsx`):
- `getLoadErrorMessage` no longer returns a module-level hard-coded Chinese
fallback; callers pass `t('cluster.clientsLoadFailed')` instead
- New `cluster.clientsLoadFailed` zh/en key in `translations.ts`
## Why
The clients page was already `useLang()`-wired, but the load-failure toast
still fell back to hard-coded Chinese when the API returned no usable message,
so the English UI showed Chinese.
## Testing
- `tsc --noEmit` → clean
- `eslint` on changed files → 0 errors
- The zh fallback text is unchanged, so existing page assertions
(ClientsPage tests) keep passing
--
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]