Frun1na opened a new issue, #4965:
URL: https://github.com/apache/rocketmq-dashboard/issues/4965

   ### Problem
   
   The Audit Log page still renders hardcoded Chinese when the UI language is 
English.
   
   **Summary cards (`web/src/pages/ops/AuditSummaryCards.tsx`)** — the four 
statistic titles, the two bucket card titles and the bucket empty state are 
literals:
   
   - `匹配记录`, `成功率`, `失败 / 部分成功`, `操作人数`
   - `高频操作`, `资源类型分布`
   - `暂无数据` (the catalog already has `common.noData` for this one)
   
   **Audit page toasts (`web/src/pages/ops/audit.tsx`)**:
   
   - `审计日志加载失败,请稍后重试`
   - `审计概览加载失败,请稍后重试`
   - `清理审计日志失败,请稍后重试`
   - `导出审计日志失败,请稍后重试`
   
   **Cleanup dialog (`web/src/pages/ops/audit.tsx`)** — the day-unit label next 
to the day input is the literal `天之前的日志`. The catalog already defines 
`audit.cleanupDays` (`清理 {n} 天之前的日志` / `Clean logs older than {n} days`) for 
that sentence but nothing references it, which is how the literal survived the 
earlier localization passes.
   
   ### Steps to reproduce
   
   1. Switch the console language to English (Settings, or the language 
selector).
   2. Open Ops → Audit Log.
   3. The summary cards read `匹配记录 / 成功率 / 失败 / 部分成功 / 操作人数`, and `高频操作 / 
资源类型分布`; open 清理日志 and the day input is followed by `天之前的日志`.
   4. Trigger a failed record load or a failed export: the toast text is 
Chinese.
   
   ### Expected
   
   Every one of those strings follows the selected language, as the rest of the 
page (`audit.title`, `audit.searchPlaceholder`, `audit.cleanupSuccess`, the 
operation/resource/result tags) already does.
   
   ### Fix
   
   PR: #4962 — moves all of them onto translation keys. The Chinese values are 
copied verbatim, so the Chinese UI does not change; only the English UI gains 
translations.
   


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