Skip to content

docs(gt-next): add API route and client-side patterns to dynamic content guide#180

Open
moss-bryophyta wants to merge 1 commit intomainfrom
dx-feedback/dynamic-content-patterns
Open

docs(gt-next): add API route and client-side patterns to dynamic content guide#180
moss-bryophyta wants to merge 1 commit intomainfrom
dx-feedback/dynamic-content-patterns

Conversation

@moss-bryophyta
Copy link
Copy Markdown
Collaborator

What

Adds three new sections to the dynamic content guide:

  1. API route usage — Shows tx() works in Next.js route handlers
  2. Client-side translation pattern — Shows how client components can translate via an API route proxy
  3. Translating multiple items — Shows Promise.all pattern for arrays

Why

DX feedback loop Run 4: a naive sub-agent building dynamic content translation had to guess all three patterns. The existing guide covers server components well but doesn't mention API routes or client-side access.

Ref: DX Feedback Loop Run 4 (2026-03-26)

@moss-bryophyta moss-bryophyta requested a review from a team as a code owner March 26, 2026 18:46
@moss-bryophyta moss-bryophyta enabled auto-merge (squash) March 26, 2026 18: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.

1 participant