yyqdbngt opened a new pull request, #3080: URL: https://github.com/apache/rocketmq-dashboard/pull/3080
### Summary Localize the last hardcoded Chinese in the service layer — the mock-mode batch import failure fallbacks: - `topicService.importTopics` (mock path) and `consumerService.importConsumerGroups` (mock path) no longer emit `创建失败`; both resolve the message through a small hook-free `serviceText(key)` helper (current stored language read per call) and the shared `common.createFailed` key. ### Why When a topic/group fails to import in the built-in demo (mock) mode, its per-row `message` surfaced the Chinese fallback in English UI; these were the only remaining non-test zh literals in the service layer (verified by literal audit). ### Testing - `tsc --noEmit` passes (exit 0). - `eslint` clean on changed files (0 errors). - Vitest: `TopicPage` and `ConsumerPage` suites pass (2 files / 40 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]
