You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/02 06:23:05 UTC

[PR] fix(i18n): localize remaining hard-coded strings on the audit page [rocketmq-dashboard]

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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(i18n): localize remaining hard-coded strings on the audit page [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #2975: fix(i18n): localize remaining hard-coded strings on the audit page
URL: https://github.com/apache/rocketmq-dashboard/pull/2975


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org