Skip to content

Add localization support#157

Draft
MattiasBuelens wants to merge 54 commits into
mainfrom
i18n
Draft

Add localization support#157
MattiasBuelens wants to merge 54 commits into
mainfrom
i18n

Conversation

@MattiasBuelens
Copy link
Copy Markdown
Collaborator

This adds a Locale interface, which contains all human-readable messages used by the UI. Users can register their own locale by calling addLocale(), and then select it by setting the lang attribute of their <theoplayer-ui> or <theoplayer-default-ui>.

Fixes #39.

Todo:

  • Write a localization guide

@MattiasBuelens MattiasBuelens requested a review from ceyhun-o May 22, 2026 16:07
@MattiasBuelens MattiasBuelens added the enhancement New feature or request label May 22, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

🦋 Changeset detected

Latest commit: cbceeff

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

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

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

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Localization

1 participant