Repository navigation
Conversation
Contributor
🟡 Reviewed4 actionable comment(s) · 1 refuted by verification · 1 suppressed (anti-noise) · grounded on your code (related code incomplete) Grounding was partial: the related-code excerpts were cut at their budget; definitions and call sites past the cut were not shown. |
Contributor
There was a problem hiding this comment.
Verdict: Approved.
Review summary: 5 file(s), 4 finding(s).
Critical 0 · Major 0 · Minor 4 · Nit 0
renderRoute now honors locale prefixes, but prefixed calls can discard the caller’s actor. The docs overstate when context is absent or the default locale is used, and the tests do not pin the locale seen by load.
| File | Findings |
|---|---|
CHANGELOG.md |
1 minor |
packages/testing/README.md |
1 minor |
packages/testing/src/render-view.test.ts |
2 minor |
A request for /es/… renders in es; renderRoute rendered every URL in the
default locale, so a localized page could only be tested by wrapping the
call in runWithContext(ctxOf({ locale })). The prefix is now split by the
same rule the router uses, and the render runs in a context holding that
locale (and the actor, when given).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…her open entries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uted locale, no context for a bare URL Review: load is asserted to read es under /es/; /precios and /fr/ render with no request context; the docs qualify the default to a standalone call (a caller's own runWithContext keeps its locale) and the actor row names the routed prefix as the other way a context opens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sebyx07
force-pushed
the
fix/render-locale
branch
from
November 24, 2026 09:20
4c12485 to
b75635a
Compare
This branch has not been deployed
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.
Problem
renderRoute(module, { url: 'https://x/es/' })rendered in the default locale: the/<locale>/prefix the router splits off (routeLocalePrefix) was ignored, andRouteRequesthas no other way to say the locale. A localized page could only be tested by wrapping the call inrunWithContext(ctxOf({ locale }), …).Change
renderRoutereads the leading segment ofurlwithsplitLocalePrefix(@ultimat3/i18n, the rule the router andmetaContextForuse). A routed locale rendersload,meta(itslocale,t,alternates) and the page in that locale, inside one request context that also carriesactorwhen given.localeoption is added.RouteRequest.url,packages/testing/README.md,wiki/Testing.md, CHANGELOG (Fixed).Tests
render-view.test.ts→renderRoute · the locale prefix(written first, failed before the fix):/es/renders page and meta ines; the prefix and the actor share one context;/preciosand an unrouted/fr/stay on the default.🤖 Generated with Claude Code