Skip to content

Add browser locale redirect for website#111

Merged
Prodesire merged 1 commit into
mainfrom
feature/website-locale-redirect
Jun 9, 2026
Merged

Add browser locale redirect for website#111
Prodesire merged 1 commit into
mainfrom
feature/website-locale-redirect

Conversation

@Prodesire

Copy link
Copy Markdown
Member

Summary

  • add a Docusaurus client module that redirects first-time root visits to the browser's preferred non-default locale
  • map browser language variants such as zh-CN, ja-JP, and pt-BR to configured Docusaurus locales
  • add Node tests for locale selection and root-only redirect behavior

Verification

  • npm test
  • npm run typecheck
  • npm run build
  • Playwright smoke test against local build: zh-CN -> /iac-code/zh-Hans/, en-US -> /iac-code/

@Prodesire Prodesire merged commit 88f7257 into main Jun 9, 2026
7 checks passed
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