Skip to content

fix(i18n): localize queue browser tool - #3059

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-queue-browser-i18n
Open

fix(i18n): localize queue browser tool#3059
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-queue-browser-i18n

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Localize the Queue Browser tool (QueueBrowser) that lets operators pick a topic and browse a specific queue offset's raw message. Previously its controls, empty states, table headers, offset-summary footer and message detail labels were hardcoded in Chinese.

  • Move 13 strings into the new queueBrowser.* translation namespace (zh/en), including a parameterized queueSummary ({count} / {total}).
  • Thread t through useQueueBrowser (error fallbacks) and both presentational exports (QueueBrowserControls, QueueBrowserResults).

Why

The Queue Browser is embedded in the already-localized Message page (queryMode === 'queue') and was the last Chinese-only surface in that workflow; this keeps the whole page consistent in English mode.

Testing

  • tsc --noEmit passes (exit 0).
  • eslint clean on changed files (0 errors; only the pre-existing hook/function fast-refresh warnings remain).
  • QueueBrowser vitest suite passes (6/6) and the Message page suite still passes (9/9).

@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.

Summary

Clean i18n localization. LGTM.


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