yyqdbngt opened a new pull request, #3189: URL: https://github.com/apache/rocketmq-dashboard/pull/3189
## Summary The topic page is being localized in slices; this PR covers the send-message flow, which was entirely hard-coded zh. Localized in instance/topic.tsx: - Module meta maps now carry translation keys: the random-body quick-fill generators (reusing existing `topic.bodyOrder`/`bodyUserEvent`/... keys), the body-format labels (空 Body / JSON 标量 / 文本 via a new `bodyFormatLabel` helper) and the payload preflight statuses (可以发送 / 建议检查 / 阻止发送). - The pre-send check panel: title, status tag, body-format tag, blocked-count vs ready descriptions, issue severity tags (阻止 / 关注 / 提示), the no-issues hint, summary property tags and the Body 类型 / 自定义属性 descriptions (incl. the 无 empty state). - Handler feedback: preflight-failed toast (blocking issue titles joined with the active-language separator), send-success toast (reusing `topic.sendSuccess`) and the send-failure fallback. - The send modal: title (reusing `topic.sendMsg`), send/cancel buttons, Tag/Key placeholders, body label/validation/placeholder, quick-fill label and buttons, custom-properties divider, the properties segmented input mode (逐条录入 / 批量粘贴) with its hint, property name/value placeholders, add-property button and the pre-send-check divider. - Reuses the large existing `topic.*` key set; 22 new keys added; zh byte-identical. ## Why Message sending is an operator-facing action with pre-send validation; its guidance and feedback must follow the active language. ## Testing - `tsc --noEmit` passes - `eslint` clean on the changed files - `vitest run TopicPage` - 21/21 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]
