Skip to content

fix(locale): follow browser language changes - #116

Merged
1bye merged 1 commit into
mainfrom
codex/i18n-locale-100
Nov 28, 2026
Merged

1bye merged 1 commit into
mainfrom
codex/i18n-locale-100

Conversation

@1bye

@1bye 1bye commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Re-detect the application locale when the browser emits languagechange. System mode refreshes open windows and explicit overrides retain their selection.
  • Own the browser listener and queued work with the locale installation. Reinstall and shutdown release the listener and cancel pending detection.
  • Add a Chrome regression test that observes a custom window render and verifies negotiation, mode changes, reinstall, and shutdown.

Verification

  • node scripts/test-web-locale.mjs with the locked wasm-bindgen CLI
  • Four native locale tests and the public ICU example test
  • A live macOS run across the original and newly opened windows
  • Locale-enabled WASM Clippy with -D warnings
  • rake format and rake lint

Refs #100

@1bye
1bye merged commit 3c3efd7 into main Nov 28, 2026
13 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