Skip to content

Add French language support to editorial demos#23

Open
ambershen wants to merge 1 commit into
chenglou:mainfrom
ambershen:french-language-support
Open

Add French language support to editorial demos#23
ambershen wants to merge 1 commit into
chenglou:mainfrom
ambershen:french-language-support

Conversation

@ambershen
Copy link
Copy Markdown

Summary

  • Adds ?lang=fr URL parameter support to both the dynamic-layout and editorial-engine demos
  • New French text content files (dynamic-layout-text-fr.ts, editorial-engine-text-fr.ts) with proper French typographic conventions (U+202F before :;!?, guillemets, curly apostrophes)
  • Calls setLocale('fr') to retarget Intl.Segmenter for French word boundaries
  • Adds FR variant links on the demo index page

Test plan

  • bun start → open localhost:3000/demos/dynamic-layout (English) and ?lang=fr (French)
  • bun start → open localhost:3000/demos/editorial-engine and ?lang=fr
  • Verify text reflows around obstacles, headline fits without word breaks, drop cap renders, pull quotes display
  • Resize viewport from wide to narrow breakpoint in both languages
  • Verify accented characters render correctly in headlines and body
  • bun run check — typecheck + lint passes
  • bun test — existing tests still pass

🤖 Generated with Claude Code

Both dynamic-layout and editorial-engine demos now read a ?lang=fr URL
parameter to switch headline, body, pullquote, and hint text to French
with proper typographic conventions (NNBSP, guillemets, curly apostrophes).
Uses setLocale('fr') to retarget the word segmenter. Demo index page
gets small FR links below each supported card.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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