Skip to content

[a11y and i18n] Translate time phrases#1232

Merged
ronald-urbina merged 1 commit into
muxinc:mainfrom
manuhabitela:translate-playback-label
Dec 18, 2025
Merged

[a11y and i18n] Translate time phrases#1232
ronald-urbina merged 1 commit into
muxinc:mainfrom
manuhabitela:translate-playback-label

Conversation

@manuhabitela
Copy link
Copy Markdown
Contributor

@manuhabitela manuhabitela commented Nov 8, 2025

👋 Hey there,

Thanks for media-chrome.

This is a tiny suggestion to improve the experience of non-English speaking users of assistive technologies like screen readers.

The duration labels meant for assistive tech were not translated, rendering for example "1 hour remaining" when using the French locale. Now all necessary strings are passed through the i18n translation function.

I thought of using Intl.DurationFormat but since browser support is very recent I figured it was not that great of an idea for now.

⚠️ only the English and French strings are legit. I can't vouch for other locales where AI did its thing.

Sorry if this is not complete enough (like maybe missing tests or anything else), I'm just discovering the code.

Cheers!

@manuhabitela manuhabitela requested review from a team and heff as code owners November 8, 2025 19:17
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 8, 2025

@manuhabitela is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

Before that, the duration labels meant for assistive tech like screen
readers were not translated, rendering for example "1 hour remaining"
when using the French locale.
Now all necessary strings are passed through the i18n translation
function.

⚠: only the English and French strings are legit. I can't vouch for
other locales where AI did its thing.
@manuhabitela manuhabitela force-pushed the translate-playback-label branch from 1e70928 to 2760794 Compare November 8, 2025 19:22
@manuhabitela
Copy link
Copy Markdown
Contributor Author

Hey there,

Do I have to do something specific that I missed to get an answer here? 😅 Thanks

@ronald-urbina
Copy link
Copy Markdown
Contributor

@manuhabitela Thank you very much for taking the time to look into the code and collaborate on this missing part of media-chrome's internationalization. We greatly appreciate it.

@ronald-urbina ronald-urbina self-requested a review December 18, 2025 17:51
@ronald-urbina ronald-urbina merged commit a725fd4 into muxinc:main Dec 18, 2025
0 of 3 checks passed
@manuhabitela
Copy link
Copy Markdown
Contributor Author

Thanks for merging!

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.

2 participants