Skip to content

Add app locale loading and intl provider#133

Merged
BunsDev merged 4 commits intomainfrom
okcode/multi-language-support
Apr 1, 2026
Merged

Add app locale loading and intl provider#133
BunsDev merged 4 commits intomainfrom
okcode/multi-language-support

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 1, 2026

Summary

  • Add app-level locale preferences to web settings, including a new locale field with a system default.
  • Introduce an i18n layer powered by react-intl that resolves the active locale from user settings and browser language.
  • Add lazy-loaded message bundles, caching, and fallback-to-English behavior when a locale cannot be loaded.
  • Expose typed i18n hooks for message formatting, dates, times, and numbers.

Testing

  • Not run (bun fmt / bun lint / bun typecheck not run).
  • Not run (bun run test not run).

- Persist app locale preference in settings
- Resolve system locale and load translated messages
- Wire react-intl helpers for formatting and message lookup
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 1, 2026 3:08am

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 1, 2026
- Add message catalogs and locale resolution for app settings
- Wire the root provider and update chat/diff timestamp formatting
- Add guardrail tests for locale resolution and catalog parity
- Force a single `effect` version across `@effect/*`
- Record the successful repo-wide `bun typecheck` in the rollout plan
…-support

# Conflicts:
#	apps/web/src/hooks/useTheme.ts
@BunsDev BunsDev merged commit fecb53a into main Apr 1, 2026
4 of 6 checks passed
@BunsDev BunsDev deleted the okcode/multi-language-support branch April 1, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant