Skip to content

fix(i18n): localize client connection load failure message - #2977

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-clients-load-failed
Open

fix(i18n): localize client connection load failure message#2977
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-clients-load-failed

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 2, 2026

Copy link
Copy Markdown

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

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean i18n localization with proper translation keys and fallback handling.


Automated review by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants