Skip to content

feat(ui): implement LocalizationProvider within Mosaic#8863

Open
alexcarpenter wants to merge 4 commits into
carp/i18nfrom
carp/i18n-mosaic-v2
Open

feat(ui): implement LocalizationProvider within Mosaic#8863
alexcarpenter wants to merge 4 commits into
carp/i18nfrom
carp/i18n-mosaic-v2

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Summary

  • Wires @clerk/i18n into the Mosaic design system as a peer dependency
  • Splits MosaicProvider.tsx into three focused providers under providers/: appearance-provider.tsx, localization-provider.tsx, and mosaic-provider.tsx
  • Adds LocalizationProvider + useMessages hook — components pass a base message object and receive merged overrides from the nearest provider
  • Adds i18n-registry.ts as the central type registry for all Mosaic UI message namespaces
  • Wires up organization-profile.messages.ts as the first consumer (orgProfile AIO messages)
  • Updates swingset (StoryEmbed, StoryPreview) to wrap stories in the new MosaicProvider tree

Stacking note

This branch targets carp/i18n (PR #8861). After that PR squash-merges to main, rebase this branch onto main before merging — the single commit here touches only packages/ui and packages/swingset, so the rebase will be conflict-free.

Test plan

  • pnpm --filter=@clerk/i18n test — 104 tests pass
  • pnpm --filter=@clerk/ui test — no new failures vs base branch (pre-existing failures in ConfigureSSO / OrganizationSecurityPage are unrelated)

@changeset-bot

changeset-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 999c8cd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
swingset Ready Ready Preview, Comment Jun 16, 2026 3:53pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
clerk-js-sandbox Skipped Skipped Jun 16, 2026 3:53pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Repository UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 4f1180d5-489c-4bc0-b82d-f04ea04a38d7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the ui label Jun 15, 2026
Comment on lines +35 to +43
<MosaicProvider
localization={{
overrides: {
organizationProfile: {
title: 'hello world',
},
},
}}
>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
<MosaicProvider
localization={{
overrides: {
organizationProfile: {
title: 'hello world',
},
},
}}
>
<MosaicProvider>

Just demoing overrides in practice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant