fix(i18n): localize the studio user management page - #2987
Open
yyqdbngt wants to merge 1 commit into
Open
Conversation
RockteMQ-AI
approved these changes
Sep 2, 2026
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
Clean i18n localization — replaces hard-coded Chinese strings with t() calls and adds corresponding zh/en translation keys. Changes are small, focused, and follow the established i18n pattern in the codebase.
Correctness ✅ — All string replacements map correctly to the new translation keys.
Compatibility ✅ — No behavioral changes, only UI string localization.
Completeness ✅ — Both zh and en translations provided for all new keys.
LGTM.
Automated review by github-manager-bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Localize the Studio user management page (
studio/UserManagement.tsx), the last fully hard-coded page on the web side:useLang()into the paget()calls and newstudioUser.*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 titlesshowTotalstays untouched here — the sharedcommon.totalUserskey is introduced by the dedicated pagination-totals PR (fix(i18n): localize pagination totals across instance and studio pages #2973) to avoid duplicate keysWhy
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→ cleaneslinton changed files → 0 problems