Skip to content

feat(i18n): translate the demo and add a demo language switcher - #122

Merged
ParadoxInfinite merged 1 commit into
mainfrom
feat/demo-i18n
Jun 28, 2026
Merged

feat(i18n): translate the demo and add a demo language switcher#122
ParadoxInfinite merged 1 commit into
mainfrom
feat/demo-i18n

Conversation

@ParadoxInfinite

Copy link
Copy Markdown
Owner

Brings the GitHub Pages demo into the translation layer and lets visitors switch
language from the demo itself.

What's here

  • The demo components (banner, compare button, and the full comparison table) now
    resolve their text through the translation layer, so the demo is no longer
    English-only.
  • A language switcher in the demo banner, shown once more than one language is
    available (so it appears automatically as catalogs get published).
  • The demo has no backend to proxy catalogs, so in the demo build the locale
    loader reads the manifest and catalogs straight from the CDN (the same files the
    backend proxy serves in the real app). The real build is unchanged.

Only English is published today, so the switcher stays hidden until a translation
lands; the wiring is in place for when one does.

Testing

  • npm run check-i18n passes (646 keys); a check confirms every t() key in the
    source resolves.
  • Both the normal build and the VITE_DEMO=1 demo build compile; the committed
    web/dist is the normal (non-demo) build.

@ParadoxInfinite
ParadoxInfinite merged commit 774d38e into main Jun 28, 2026
1 check passed
@ParadoxInfinite
ParadoxInfinite deleted the feat/demo-i18n branch June 28, 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.

1 participant