Videojs default (English) language
Changing the videojs player language is relatively easy and well described, including demo and tutorial on Nuevodevel.com website.
But what about default English language texts? How to change one or two texts that you may find more accurate?
Default English texts are not loaded from any JavaScript or JSON file. All texts are built into the video.js source code.
However, it is still possible to change English texts in a relatively easy way. Let's suppose that instead of Captions
tooltip text, you prefer Subtitles
, and instead of PLAYLIST
text, you prefer EPISODES
. All you need is to define new texts before videojs player is initialized.
videojs.addLanguage('en', {
"Captions": "Subtitles",
"PLAYLIST": "EPISODES"
});
const player("my_player_id");