Skip to content

Take over react-aria's prop-replaceable strings via our catalogs - #53

Merged
microbit-matt-hillsdon merged 1 commit into
mainfrom
rac-strings-via-catalogs
Aug 7, 2026
Merged

Take over react-aria's prop-replaceable strings via our catalogs#53
microbit-matt-hillsdon merged 1 commit into
mainfrom
rac-strings-via-catalogs

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

Where react-aria lets a prop replace one of its built-in strings — NumberField's stepper labels, the toast region's landmark label, ComboBox's trigger and listbox labels, Select's placeholder and the GridList row-selection checkbox name — the components now pass our own react-intl messages, so the strings ride lang/ and Crowdin like everything else and ca/cy/ga-IE (which react-aria lacks) can catch up.

Translations are pre-seeded from react-aria's own catalogs (adobe/react-spectrum at react-aria-components@1.19.0, Apache 2.0 — notice in LICENSE.md, provenance in the README's Strings section since Crowdin roundtrips rewrite the lang JSON). ca/cy/ga-IE/lol carry the English backfill until translated in Crowdin.

SharedUIProvider's locale-plumbing tests probed react-aria's resolved locale via NumberField's steppers, which are now ours; they probe the Modal's hidden dismiss button instead.

Fixes #48

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3af6ab9
Status: ✅  Deploy successful!
Preview URL: https://93584e51.ui-2wg.pages.dev
Branch Preview URL: https://rac-strings-via-catalogs.ui-2wg.pages.dev

View logs

Where react-aria lets a prop replace one of its built-in strings —
NumberField's stepper labels, the toast region's landmark label,
ComboBox's trigger and listbox labels, Select's placeholder and the
GridList row-selection checkbox name — the components now pass our own
react-intl messages, so the strings ride lang/ and Crowdin like
everything else and ca/cy/ga-IE (which react-aria lacks) can catch up.

Translations are pre-seeded from react-aria's own catalogs
(adobe/react-spectrum at react-aria-components@1.19.0, Apache 2.0 —
notice in LICENSE.md, provenance in the README's Strings section since
Crowdin roundtrips rewrite the lang JSON). ca/cy/ga-IE/lol carry the
English backfill until translated in Crowdin.

SharedUIProvider's locale-plumbing tests probed react-aria's resolved
locale via NumberField's steppers, which are now ours; they probe the
Modal's hidden dismiss button instead.

Fixes #48
@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor Author

We'll need to do a Crowdin dance here because we have some English that we don't want to replace with these translations. Either we pre-translate it and upload these or we hope it gets translated via duplicates (quite likely)...

@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit 961a575 into main Aug 7, 2026
2 checks passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the rac-strings-via-catalogs branch August 7, 2026 14:00
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.

Add prop-level overrides for the RAC strings that take a label

1 participant