Craft 2055 - Remove react-intl devDep & implement custom i18n extraction#987
Craft 2055 - Remove react-intl devDep & implement custom i18n extraction#987valoriecarli merged 18 commits intomainfrom
react-intl devDep & implement custom i18n extraction#987Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b709bca The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
react-intl devDep & implement custom i18n extraction
|
@claude do an initial review |
|
Claude finished @valoriecarli's task in 2m 26s —— View job Initial Review of PR #987 ✅I've completed an initial code review of the SummaryScope: 100 files changed (+2,296/-3,529)
✅ Strengths1. Clean Custom Extraction Script (
|
stephsprinkle
left a comment
There was a problem hiding this comment.
Tested out the script, does the thing as far as I can tell
Update spec documentation to clearly state that NimbusI18nProvider is for date/number formatting (React Aria I18n), not UI text translation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fix syntax error in variable message example. The message key must be
properly quoted and variables passed as second parameter.
Before: msg.format("pageInfo, { current: 1, total: 10 }");
After: msg.format("pageInfo", { current: 1, total: 10 });
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
564617c to
b709bca
Compare
ByronDWall
left a comment
There was a problem hiding this comment.
This is really great work - a true win for nimbus' developer experience.
Also, wow openspec is real real verbose, huh?
Boy howdy. |

react-intl→@internationalized/stringmigration started in CRAFT-2029- Migrate from react-intl to compile-time message parsing #841.react-intldep is removed, alldefineMessagesimports are eliminated &@formatjs/cliis replaced with a custom extraction script.gitignoredto follow best practices for generated code.TL;DR:
react-intlis completely gone, extraction is now custom & cleaner, generated files aregitignored& all docs have been updated.Major Change:
Created custom extraction script (
packages/i18n/scripts/extract-messages) to remove thereact-intldevDep..i18nfiles are now plain TS objects with no external dependencies. They exist solely for extraction purposes & are never imported by components at runtime.We now:
Before:
After:
Other goodies in the PR include (but not limited to):