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

   ### Summary
   Localize the batch message-property parser used by the Topic page's "send 
message" modal:
   
   - `parseMessageProperties` no longer returns pre-rendered Chinese error 
strings; it returns structured `PropertyParseError` items (`invalidFormat` / 
`emptyName` / `duplicate` with the offending value/key).
   - The Topic page submit handler translates each item with new 
`messageProperties.*` keys (`{value}` / `{key}` interpolation) and joins them 
with a language-aware separator (`;` vs `; `).
   - Updated the parser unit test and the TopicPage contract assertions to the 
structured error shape.
   
   ### Why
   Typing malformed `key=value` text (e.g. a bare `tenant` or a duplicated key) 
surfaced a hardcoded Chinese toast on an otherwise localized page; the parser 
was also the only remaining zh-producing util on that path.
   
   ### Testing
   - `tsc --noEmit` passes (exit 0).
   - `eslint` clean on changed files (0 errors).
   - Vitest: `messageProperties` unit suite + full `TopicPage` suite pass (2 
files / 18 tests).
   


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