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 08:01:03 UTC
[PR] fix(i18n): localize the studio user management page [rocketmq-dashboard]
yyqdbngt opened a new pull request, #2987:
URL: https://github.com/apache/rocketmq-dashboard/pull/2987
## Summary
Localize the Studio user management page (`studio/UserManagement.tsx`), the last fully hard-coded page on the web side:
- Wire `useLang()` into the page
- Replace ~45 hard-coded strings with `t()` calls and new `studioUser.*` zh/en keys: 10 feedback toasts (load/create/enable/disable/password/export), table columns (用户名/用户 ID/权限/状态/创建时间/操作), role and status tags, page header + card title, admin-denied banner, search/filter placeholders and aria-labels, role/status filter options, create-user form labels and validation messages, password-change/reset modal labels and titles
- The pagination `showTotal` stays untouched here — the shared `common.totalUsers` key is introduced by the dedicated pagination-totals PR (#2973) to avoid duplicate keys
## Why
The page rendered entirely in Chinese in the English UI — every toast, column header, filter and form label was hard-coded.
## Testing
- `vitest run src/pages/studio/__tests__/UserManagement.test.tsx` → 4/4 passed (zh default render unchanged)
- `tsc --noEmit` → clean
- `eslint` on changed files → 0 problems
--
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 the studio user management page [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #2987: fix(i18n): localize the studio user management page
URL: https://github.com/apache/rocketmq-dashboard/pull/2987
--
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