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

   ## Summary
   
   Localize the last hard-coded strings on the ops audit page (`ops/audit.tsx`):
   
   - `message.error('审计日志加载失败…')` → `t('audit.loadFailed')` (load path)
   - `message.error('清理审计日志失败…')` → `t('audit.cleanupFailed')` (cleanup path)
   - `message.error('导出审计日志失败…')` → `t('audit.exportFailed')` (export path)
   - hard-coded `天之前的日志` suffix next to the cleanup-day `InputNumber` → 
`t('audit.daysOld')`
   
   Four new `audit.*` zh/en keys added to `translations.ts`.
   
   ## Why
   
   The page was already `useLang()`-wired with complete `audit.*` keys, but 
these four UI strings were still hard-coded Chinese, so the English UI showed 
Chinese error toasts and a Chinese day suffix in the cleanup dialog.
   
   ## Testing
   
   - `vitest run src/pages/ops/__tests__/AuditPage.test.tsx` → 7/7 passed
   - `tsc --noEmit` → clean
   - `eslint` on changed files → 0 errors
   


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