Skip to content

Localize error message in <theoplayer-error-display>#164

Merged
MattiasBuelens merged 2 commits into
mainfrom
localize-error-message
Jun 26, 2026
Merged

Localize error message in <theoplayer-error-display>#164
MattiasBuelens merged 2 commits into
mainfrom
localize-error-message

Conversation

@MattiasBuelens

@MattiasBuelens MattiasBuelens commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

By default, the error message is always shown in English. This PR allows a Locale to provide its own localized error messages, e.g. by switching on error.code or error.category.

@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2735c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@theoplayer/web-ui Patch
@theoplayer/react-ui Patch

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

@MattiasBuelens MattiasBuelens merged commit e83189c into main Jun 26, 2026
1 check passed
@MattiasBuelens MattiasBuelens deleted the localize-error-message branch June 26, 2026 11:42
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.

1 participant