This took me today some hours too.
The captions and subtitles from the 'mediaelementplayer.js' file are loaded while the javascript loads. (And not (as I expected) when the document is ready or when initializing a new player)
You have to choose between:
- manually set the translations to the 'window.mejs.MepDefaults' object
Example:
mejs.MepDefaults.fullscreenText = 'Vollbild'
- or to put a line at the top of mediaelementplayer.js (or any place between the loading of mediaElement.js and mediaelementplayer.js with e.g. async. loading)
Example:
// Set mejs translation to German
mejs.i18n.getLanguage = function() { return 'de' };