Skip to content

feat: add LocaleProvider with URL synced locale state#300

Merged
zigzagdev merged 1 commit intochore/create-language-contextfrom
feat/locale-provider
Apr 29, 2026
Merged

feat: add LocaleProvider with URL synced locale state#300
zigzagdev merged 1 commit intochore/create-language-contextfrom
feat/locale-provider

Conversation

@zigzagdev
Copy link
Copy Markdown
Owner

No description provided.

@zigzagdev zigzagdev self-assigned this Apr 29, 2026
@zigzagdev zigzagdev linked an issue Apr 29, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Owner Author

@zigzagdev zigzagdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Introduce a feature-level LocaleProvider that derives the active locale
from the ?lang= query string and exposes setLocale/toggleLocale through
useLocale, mirroring the existing BreadcrumbProvider layout. Mount the
provider in AppRoutes so downstream containers can consume locale
context instead of resolving it inline.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zigzagdev zigzagdev force-pushed the feat/locale-provider branch from a6994f3 to db43626 Compare April 29, 2026 08:14
@zigzagdev zigzagdev merged commit f688549 into chore/create-language-context Apr 29, 2026
1 check failed
@zigzagdev zigzagdev deleted the feat/locale-provider branch April 29, 2026 08:19
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.

Refactor: Introduce LanguageContext to eliminate prop drilling

1 participant