Docs/improve lang import and set#1287
Conversation
|
@ronalduQualabs is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1287 +/- ##
==========================================
- Coverage 78.55% 73.55% -5.00%
==========================================
Files 59 56 -3
Lines 11080 13884 +2804
Branches 0 783 +783
==========================================
+ Hits 8704 10213 +1509
- Misses 2376 3638 +1262
- Partials 0 33 +33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a8620c4. Configure here.

Improve docs for adding/setting lang support and include German option to examples.
Note
Low Risk
Mostly documentation/example updates with a small additive API (
resolvedLang/getResolvedLanguage) that should not affect existing behavior but could surface edge cases if consumers start relying on the resolved value.Overview
Improves internationalization guidance by documenting script load order, manual
langoverrides on<media-controller>, and how to contribute new language files; also updates the language list and examples (including German).Enhances the vanilla i18n example to auto-select a best-match language from
navigator.language, switch via a dropdown UI, and display both the detected browser language and the controller’s active resolved language.Adds
getResolvedLanguage()toutils/i18nand exposes it as aresolvedLanggetter onMediaControllerso apps can query which language is actually being used after fallback resolution.Reviewed by Cursor Bugbot for commit 47d2c6b. Bugbot is set up for automated code reviews on this repo. Configure here.