Repository navigation
feat(outreach): publish the blog in French - #1921
Merged
Merged
Conversation
Add French translations of the five published posts. A translation names its original in a new `translationOf` frontmatter field, and the language toggle on a post now opens its counterpart, or the other language's blog index when it has none, instead of a 404. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reading time on blog posts, the Docs link in the header, the Instrument Playground link in the footer and the 404 page were English on the French site. The 404 page cannot tell which language the visitor wanted, so it shows both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joshunrau
approved these changes
Nov 13, 2026
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.
French visitors to opendatacapture.org now get the blog in French. The site's toggle between French and English on a blog post now opens that post in the other language. A few strings that were still English on French pages are translated.
Changes
/fr/bloglists French translations of the five published posts. The REDCap comparison is still a draft and is not translated.translationOf: <slug>in its frontmatter. The build fails if atranslationOfnames no post, if a post would pair with more than one other post, or if both posts are in the same language..agents/docs/playbooks/add-blog-post.mddocuments the field.Decisions
/fr/blog/naviguer-la-bureaucratie), linked by one field on the translation. The alternative was to reuse the English slug, which would need a slug override, because/blogis one flat directory where the filename is the slug.apps/web.Risks
mdbreakpoint.Notes
apps/outreachhas no unit or e2e tests, so I checked the built site's HTML instead:isDraft: true, its English original's toggle points to/fr/blog/.Blog post 'l-infonuagique-en-sante' is paired with more than one post.Adversarial review
Reviewed at commit eb33c95. pnpm check: green.
Findings
translationOfand another post names that post, the build passes with a three-way chain: A (en → C), B (fr → A), C (fr). A links to C and C links to A, so nothing links to B. Thelength > 1check only covers posts with notranslationOf. — Collect candidates in both directions:candidate.id === original?.id || originals[index]?.id === post.id. The existinglength > 1check then rejects the chain.getPublishedTranslationreturns the original when given a translation, so[slug].astro:11,22stores an English original in a prop namedtranslation. — Rename to match the package's existingaltnaming:getPublishedAltPost/altPost.Fixed
getPublishedAltPost, with the page propaltPost.Attestation
I, Claude Opus 5.5, attest that the review block above reports the adversarial review as it ran on the commit named, with every finding it returned.
🤖 Generated with Claude Code