Repository navigation
OpenConceptLab/ocl_issues#2919 | User management shows resource names; es and zh translate common.checking_auth - #63
Merged
paynejd merged 1 commit intoNov 16, 2026
Conversation
…e names; es and zh translate common.checking_auth The hard-delete summary in UserManagement.jsx asked for common.resources.orgs, .sources and .collections, which no catalog has, so it showed the raw keys. It now asks for resources.orgs, .sources and .collections, which en, es and zh all have. The es and zh catalogs lacked common.checking_auth (CheckAuth.jsx), so it fell back to English. Both now have it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVSyFCTVzkL2HkSWRF
Member
Author
PR checks
CodeQL and Snyk passed too. After the simplification review I ran the local gate again on the same commit: the Codex pass 1 and the simplification review were both clean, so no review-driven commits followed and no final Codex check was needed. |
paynejd
marked this pull request as ready for review
November 16, 2026 15:53
Closed
2 tasks
paynejd
deleted the
OpenConceptLab/ocl_issues#2919-user-management-i18n
branch
November 16, 2026 16:25
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.
What changed and why
src/components/users/UserManagement.jsxcalledt('common.resources.orgs'),…sourcesand…collections. No catalog has those keys, so the dialog read "common.resources.orgs: 2" and so on. The calls now useresources.orgs,resources.sourcesandresources.collections, which en, es and zh all have.common.checking_auth.CheckAuth.jsxasks for it, and es and zh fell back to English. Added "Verificando la autenticación..." (es) and "正在验证身份..." (zh), in the same style as the catalogs' other in-progress strings ("Recargando...", "正在重新加载...").Three files, 7 lines added, 5 removed. No new keys in en.
How I tested it
The repo has no test suite and CI runs none, so I checked by hand, before and after.
t('…')key inUserManagement.jsxandCheckAuth.jsxand resolves it in each catalog, the way i18next does with its default.separator. It's a scratch script and isn't committed.origin/master: fails. en is missing the threecommon.resources.*keys; es and zh are missing those three andcommon.checking_auth.common.checking_authgives the strings above.--single-process), on the app served by the gate runner innode:14against the staging API.localStorage, and the viewed user's API responses stubbed in the browser. Other API requests went out anonymously, GET only, with any Authorization header stripped. The toggles response was stubbed withLOCALIZATION_TOGGLEon, so the header's language menu shows.run:step of.github/workflows/pr.yml, in order):start-prod.shsecret-shaped-variable check: passed;npm ci, then./node_modules/eslint/bin/eslint.js --ext .jsx,.js src/on Node 14 (node:14image): passed, exit 0.Acceptance criteria
resources.orgs,resources.sourcesandresources.collections. Evidence: the before and after browser check above, in en and es, and the catalog check.common.checking_authis in es and zh. Evidence: the catalog check above, which fails on master and passes here. I couldn't show the "Checking auth" screen itself in the browser: see "Noticed, not fixed".Docs
None changed. The README doesn't cover the catalogs, and
changelog.mdis written at release time from commit subjects.Chose not to do
Noticed, not fixed
isRedirectingToLoginViaReferrerinsrc/common/utils.jsreadsparamsin its own initializer (let params = params?.length > 0 ? …), so it can't return true, andCheckAuthnever renders. Even if it did, the screen is for signed-out visitors, and the header's language menu shows only to signed-in admins, so a visitor would see it in English.Languages.jsxoffers only English and Español.App.jsxsends every visit to the sign-in form.forceLoginUsercallsgetLoginURL(window.location.origin + '/#' + pathname)before it declarespathname, soreturnToends in#undefined.ConceptContainerDelete.jsxpasseskey='concept_container.delete.message'to<Trans>instead ofi18nKey, so "This action cannot be undone!…" stays in English. The resource name in its title and button ("User") isn't translated either.closes OpenConceptLab/ocl_issues#2919
Written by an Octoad session worker (worker-v0.23, recipe lean-loop, flow public>public, run openconceptlab-ocl-issues-2919-20261116-103433).
🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qVSyFCTVzkL2HkSWRF