-
Notifications
You must be signed in to change notification settings - Fork 193
Description
First of all I wanted to say thanks for a GREAT library! ❤️
Related Problem:
The element's aria-label attribute (e.g., "Video Player - My Title") is hardcoded in English and cannot be translated via the existing i18n/translations system (as far as I can tell). This creates an inconsistent accessibility experience for non-English websites where control labels are translated but the main player label is not.
Describe:
Allow customization of the root player aria-label. The label is currently constructed in #watchTitle() as:
${typeText} Player + (currentTitle ? - ${currentTitle} : '')
I'd like to be able to provide translations for "Video Player", "Audio Player", "Media Player", "Live", etc. through the existing layout translations system (PlyrLayout/DefaultLayout).
Anything Else?
Use case: Norwegian website needing aria-label="Videospiller - Min videotittel" instead of aria-label="Video Player - Min videotittel".