Skip to content

feat(i18n): re-export MessageDescriptor - #301

Merged
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/export-message-descriptor
Aug 29, 2026
Merged

feat(i18n): re-export MessageDescriptor#301
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/export-message-descriptor

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

runtime/i18n re-exported IntlConfig, ResolvedIntlConfig, and IntlShape, but not MessageDescriptor. Apps that type a message-carrying prop or config field had no way to name that type through @openedx/frontend-base, so they imported it from react-intl directly, a package they do not declare and only resolve through hoisting.

This adds MessageDescriptor to the i18n export list and to the runtime barrel.

Closes #300

LLM usage notice

Built with assistance from Claude.

Apps that type a message-carrying prop or config field had no way to
name that type through frontend-base, and were importing it from
react-intl directly, a package they do not declare.

Closes: openedx#300

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes
arbrandes merged commit d4c79a9 into openedx:main Aug 29, 2026
5 checks passed
@arbrandes
arbrandes deleted the arbrandes/export-message-descriptor branch August 29, 2026 12:09
@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0-alpha.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-export MessageDescriptor from the runtime i18n API

2 participants