Skip to content

i18n: register all 8 translated locales in Starlight config - #5347

Merged
leaanthony merged 1 commit into
masterfrom
i18n/register-locales-astro-config
May 6, 2026
Merged

leaanthony merged 1 commit into
masterfrom
i18n/register-locales-astro-config

Conversation

@leaanthony

@leaanthony leaanthony commented May 6, 2026 •

Copy link
Copy Markdown
Member

Registers all 8 translated locales in docs/astro.config.mjs so the Starlight language switcher surfaces translated pages.

Changes

docs/astro.config.mjs — adds 8 locale entries to the Starlight locales block:

Locale key Label Lang tag
zh-cn 简体中文 zh-CN
zh-tw 繁體中文 zh-TW
ja 日本語 ja
ko 한국어 ko
ru Русский ru
fr Français fr
pt Português (Brasil) pt-BR
de Deutsch de

Without these entries, translated .mdx files exist on disk but Starlight doesn't expose them through the language switcher (as noted in #5343).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Extended documentation language support to include Chinese (Simplified and Traditional), Japanese, Korean, Russian, French, Brazilian Portuguese, and German.

Adds zh-cn, zh-tw, ja, ko, ru, fr, pt, de to the Starlight locales
block in astro.config.mjs so the language switcher surfaces all
translated pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 6, 2026 12:38
@leaanthony
leaanthony merged commit b1307ff into master May 6, 2026
14 of 16 checks passed
@leaanthony
leaanthony deleted the i18n/register-locales-astro-config branch May 6, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Registers additional Starlight i18n locales in the docs site configuration so the language switcher can surface translated documentation routes.

Changes:

  • Expands the Starlight locales map to include zh-cn, zh-tw, ja, ko, ru, fr, pt, and de.
  • Adds per-locale label, lang, and dir metadata for the language switcher / HTML language attributes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/astro.config.mjs
Comment on lines +129 to +136
"zh-cn": { label: "简体中文", lang: "zh-CN", dir: "ltr" },
"zh-tw": { label: "繁體中文", lang: "zh-TW", dir: "ltr" },
ja: { label: "日本語", lang: "ja", dir: "ltr" },
ko: { label: "한국어", lang: "ko", dir: "ltr" },
ru: { label: "Русский", lang: "ru", dir: "ltr" },
fr: { label: "Français", lang: "fr", dir: "ltr" },
pt: { label: "Português (Brasil)", lang: "pt-BR", dir: "ltr" },
de: { label: "Deutsch", lang: "de", dir: "ltr" },
@coderabbitai

coderabbitai Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f21b7a8a-1c2c-4c76-bc79-3764155cc752

📥 Commits

Reviewing files that changed from the base of the PR and between 7c45bcd and 32877df.

📒 Files selected for processing (1)
  • docs/astro.config.mjs

Walkthrough

The documentation configuration is expanded to support multiple languages in the Starlight site integration. The locales map previously contained only English; it now includes nine language variants (English, Chinese Simplified/Traditional, Japanese, Korean, Russian, French, Brazilian Portuguese, German) with their corresponding labels and language settings.

Changes

Documentation Locales Configuration

Layer / File(s) Summary
Locale Map Expansion
docs/astro.config.mjs
Starlight locales configuration extended from single English root entry to nine locales with labels and language direction/code attributes for multilingual documentation support.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • wailsapp/wails#5343: Modifies the same docs/astro.config.mjs locales map to register additional language locales including German.

Suggested labels

Documentation

Poem

🐰 A multilingual leap so fine,
Nine tongues now grace the docs' design,
From East to West, the languages bloom,
In Starlight's bright and welcoming room!
The rabbit hops with joy profound. ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch i18n/register-locales-astro-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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