Skip to content

Let project adminUi.* translations reach the admin console - #240

Merged
jimhoyd merged 1 commit into
mainfrom
claude/issue-227-admin-copy-override
Sep 20, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/issue-227-admin-copy-override

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Fixes #227.

Root cause (confirmed by reproduction): presentationSource builds createAdminPresentation({ base: kit.presentation }); the admin ids were answered only by an inner presentation built from options.catalogues (empty there), so project adminUi.* copy in the base was never consulted.

Fix: when base is given, an admin id the base resolves for the request locale wins; otherwise bundled admin English. No-base and host-supplied presentations unchanged.

Tests: extended the generated-consumer override test with an adminUi.* id asserted on the rendered dashboard, plus an admin unit test. Both fail without the fix. lint, typecheck, check, npm test, verify:workspaces pass. Changeset added.

Limitation: a project override supplied only for en is not applied to other locales (they fall back to bundled admin English).

🤖 Generated with Claude Code

In a composed site the console copy source is createAdminPresentation({ base: kit.presentation }). The admin ids were resolved only from a presentation built from options.catalogues (empty on that call), so adminUi.* entries in ui/copy/<locale>.json were ignored and the console fell back to bundled English. When a base is given, an admin id the base resolves for the request locale now wins; otherwise the bundled admin English answers.

Verified: the new integration assertion (adminUi.activityDetails on the rendered /admin dashboard) and an admin unit test both fail on the unfixed code and pass on the fix; lint, typecheck, check, npm test and verify:workspaces pass. Not verified: Windows, docs:llms (no docs touched).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd merged commit bdc2cca into main Sep 20, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the claude/issue-227-admin-copy-override branch September 20, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Admin console copy is not translatable in a composed site; project adminUi.* translations are dropped

1 participant