Skip to content

docs: register German (de) locale in Starlight config - #5343

Merged
leaanthony merged 3 commits into
masterfrom
docs/register-de-locale
May 6, 2026
Merged

leaanthony merged 3 commits into
masterfrom
docs/register-de-locale

Conversation

@leaanthony

@leaanthony leaanthony commented May 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Without this entry Astro silently ignores everything under docs/src/content/docs/de/ during the build, so the translated pages never appear on v3.wails.io regardless of what's been merged.

Test plan

  • CF Pages preview build shows German pages under /de/
  • /de/ language switcher appears on the deployed site

Summary by CodeRabbit

  • New Features
    • German language locale support is now available.

Copilot AI review requested due to automatic review settings May 5, 2026 20:51
@coderabbitai

coderabbitai Bot commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1665b033-3b7f-45a0-ac01-5bcd862c6228

📥 Commits

Reviewing files that changed from the base of the PR and between c451385 and 7a711ea.

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

Walkthrough

A German locale entry (de) is added to the Astro documentation site's locales configuration map, specifying the locale label, language code, and text direction. No other functional or API changes are introduced.

Changes

Localization Configuration

Layer / File(s) Summary
Locale Configuration
docs/astro.config.mjs
German locale de: { label: "Deutsch", lang: "de", dir: "ltr" } is added to the locales map, expanding supported documentation languages.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

reviewed ✅

Poem

A curious rabbit hops through code,
Sprinkling German on the road, 🐰
"Deutsch!" it chirps with glee,
New locales now are free!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is largely incomplete, missing critical template sections including issue reference, type of change selection, testing details, and required checklist items. Add the missing sections: reference the issue with 'Fixes #5330', select the type of change, describe testing steps, and complete the checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: registering a German locale in the Starlight config.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 docs/register-de-locale

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.

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 the German locale in the docs site’s Starlight i18n configuration so content under docs/src/content/docs/de/ is included in builds and served under /de/, aligning the site config with the translated docs introduced in #5330.

Changes:

  • Add de to the Starlight locales map in docs/astro.config.mjs to enable German routes.

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

Comment thread docs/astro.config.mjs
Comment on lines 126 to 130
defaultLocale: "root",
locales: {
root: { label: "English", lang: "en", dir: "ltr" },
de: { label: "Deutsch", lang: "de", dir: "ltr" },
},
@leaanthony leaanthony added the Documentation Improvements or additions to documentation label May 6, 2026
@leaanthony
leaanthony merged commit 3817d19 into master May 6, 2026
14 of 15 checks passed
pull Bot pushed a commit to WangNingkai/wails that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants