yyqdbngt opened a new pull request, #3195:
URL: https://github.com/apache/rocketmq-dashboard/pull/3195

   ## Summary
   
   The topic page is being localized in slices (send-message and list surfaces 
done previously); this PR covers the create-topic flow.
   
   Localized in instance/topic.tsx:
   - The topic-type picker cards now carry `labelKey` / `descKey` (普通消息 / 顺序消息 
/ 延迟消息 / 事务消息 / LiteTopic and their long-form descriptions), resolved through 
the translator in the Segmented options and the dynamic helper text.
   - Create handler feedback: no-instance guard, success toast 
(`Topic「{name}」创建成功` - reusing the existing key) and failure fallback.
   - The create modal: title (reusing `topic.createTopic`), create/cancel 
buttons, Topic 名称 label with required / name-pattern / max-length validation 
(length interpolated) and placeholder (reusing `topic.name`, 
`topic.topicNameRequired`, `topic.topicNamePlaceholder`), 类型 select, 写队列数 / 
读队列数 with the shared queue extra (reusing `topic.writeQueues` / 
`topic.readQueues` / `topic.queueExtra`), 权限 radio group (读写 / 只读 / 只写 reusing 
`topic.permRW` / `topic.permRO` / `topic.permWO`) and 备注 with its placeholder.
   - 14 new `topic.*` keys; zh byte-identical.
   
   ## Why
   
   Topic creation drives a required flow with per-type guidance; forms and 
validation must read in 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]

Reply via email to