Skip to content

Add dual-language support (English + Danish) - #7

Closed
lakruzz with Copilot wants to merge 3 commits into
mainfrom
copilot/implement-dual-language-support
Closed

lakruzz with Copilot wants to merge 3 commits into
mainfrom
copilot/implement-dual-language-support

Conversation

Copilot AI commented Apr 14, 2026 •

Copy link
Copy Markdown

Implements Starlight's recommended i18n setup with English as the root locale and Danish (da) as the secondary. Pages missing a translation fall back to the available version.

Config (astro.config.mjs)

  • Added locales with root → en and da → da
  • Added sidebar translations keys for Danish labels
locales: {
  root: { label: 'English', lang: 'en' },
  da:   { label: 'Dansk',   lang: 'da' },
},

Danish content (astro/src/content/docs/da/)

File Title
index.mdx Velkommen til Lean Crowd Manifest
guides/example.md Eksempelvejledning
reference/example.md Eksempelreference

Result

English (/) and Danish (/da/) are both fully navigable. Starlight's built-in locale strings handle UI chrome (search, theme picker, etc.) automatically.

English Dansk
English Dansk

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/.npm/_npx/aa98e6899c6baff3/node_modules/.bin/astro build --root astro (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/lean-crowd-manifest/lean-crowd-manifest/astro/node_modules/.bin/astro build --root astro (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/lean-crowd-manifest/lean-crowd-manifest/astro/node_modules/.bin/astro preview --host 0.0.0.0 --root astro (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Implement dual language support for English and Danish Add dual-language support (English + Danish) Apr 14, 2026
Copilot AI requested a review from lakruzz April 14, 2026 10:31
@lakruzz
lakruzz marked this pull request as ready for review April 14, 2026 10:39
@github-actions

Copy link
Copy Markdown

Closed by Ready action after successful fast-forward merge to 'main' via 'ready/copilot/implement-dual-language-support'.

@github-actions github-actions Bot closed this Apr 14, 2026
@lakruzz
lakruzz deleted the copilot/implement-dual-language-support branch April 14, 2026 10:41
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.

implement support for both english and danish

2 participants