Skip to content

Add French (fr) localization - #1536

Merged
baires merged 1 commit into
baires:masterfrom
lenoxys:feature/french
Nov 26, 2026
Merged

baires merged 1 commit into
baires:masterfrom
lenoxys:feature/french

Conversation

@lenoxys

@lenoxys lenoxys commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds French. It ships as the base fr, not fr-FR, so fr-FR, fr-CA and fr-BE browsers fall back to it instead of English.

Changes

  • Add locales/fr.json, same keys as en.json. Written for France: the English pop culture references are swapped for French ones (Astérix, Kaamelott, Les Visiteurs, Le Père Noël est une ordure, the French dub of Back to the Future), so the reason arrays are a bit longer than the English ones.
  • Register fr in the client loader and the server locale map.
  • Tests: fr-CA now falls back to fr. The two "unknown language falls back to English" cases used fr, they now use de.

Testing

Keys checked against en.json. I didn't run jest locally, CI covers it.

@lenoxys
lenoxys requested a review from baires as a code owner November 26, 2026 09:02
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@lenoxys is attempting to deploy a commit to the Alexis' projects Team on Vercel.

A member of the Team first needs to authorize it.

@baires

baires commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Coverage report

St.❔
Category Percentage Covered / Total
🟢 Statements
95.37% (+0.02% 🔼)
412/432
🟢 Branches 92.56% 224/242
🟢 Functions
97% (+0.06% 🔼)
97/100
🟢 Lines
95.39% (+0.02% 🔼)
393/412

Test suite run success

155 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from e817cb8

@lenoxys
lenoxys force-pushed the feature/french branch 2 times, most recently from 352854d to 6f66777 Compare November 26, 2026 09:16
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
shouldideploy Ready Ready Preview Nov 26, 2026 11:06am UTC

@baires
baires merged commit 07eb82e into baires:master Nov 26, 2026
3 of 4 checks passed
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.

2 participants