Skip to content

feat: add French translation and enable the fr locale - #56

Open
BryanFRD wants to merge 1 commit into
Steel-Foundation:masterfrom
BryanFRD:feat/french-translation
Open

feat: add French translation and enable the fr locale#56
BryanFRD wants to merge 1 commit into
Steel-Foundation:masterfrom
BryanFRD:feat/french-translation

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

What this adds

French locale for SteelDocs, at full parity with the English content.

  • src/content/docs/fr/ — all 28 documentation pages
  • src/content/i18n/fr.json — the 17 UI strings, mirroring en.json
  • src/pages/fr/index, download, tracker, mirroring the de and es pages
  • astro.config.tsfr keys in the title and sidebar translations maps, and the
    fr entry in locales

fr is enabled rather than commented out like de and es, because the translation is
complete. That alone makes both language switchers appear; no switcher code was touched. If
you would rather review the content first, commenting out those four lines splits this in two.

Terminology

Kept in English: chunk, item, seed, block entity, feature flag, wildcard, and all
identifiers, permission keys, TOML keys, paths and code. Translated: block -> bloc, world ->
monde, domain -> domaine, world generator -> générateur de monde. Benchmark figures use French
number formatting; the chart SVGs are shared assets and stay in English.

How this was tested

bun run build passes: 114 pages, no errors or warnings. All 31 French routes render with
translated content rather than the English fallback. Anchors and visual layout are not checked
by the build, so /fr/configuration/world-configuration and /fr/commands/permissions are
worth a look since they carry the most cross-page anchor links.

One thing to flag

With a second locale active, the build now emits 18 routes under /fr/de/... and /fr/es/....
That happens because src/content/docs/de/ and src/content/docs/es/ are not registered
locales, so Starlight treats them as ordinary root-locale content and the fallback duplicates
them under every active locale. It is not caused by this PR, but this PR is what makes it
visible. Enabling de and es, or moving their content out of the docs tree until they are
ready, would both fix it.

Copilot AI lite review requested due to automatic review settings August 20, 2026 15:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coco875

coco875 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

4.7k, a lot of change to see at once x)

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.

3 participants