Create, edit, apply languages for Videojs and Nuevo plugin
Video.js framework supports multiple languages and allows for users of non-English locales to natively interact with the player.The player example above with the pre-roll video uses the Spanish language.
Additional language support can be added to the Video.js player in multiple ways.Language support is described in detail on dedicated website http://docs.videojs.com/docs/guides/languages.html.
The Video.js distribution package includes a "lang" directory with multiple .json files, each representing certain language translation. For much easier use, Nuevodevel prepared appropriate JavaScript files with language translations. This makes very easy to load and apply custom language, just like Spanish (es.js) in the example below.
Code snippet
<script src="//domain.com/video-js/video.min.js"></script><script src="//domain.com/video-js/lang/es.js"></script><script src="//domain.com/video-js/nuevo.min.js"></script><script>const player = videojs("my_player",{ license: "key", {language: 'es'});player.nuevo({//plugin options here});</script>Of course you can edit any of the existing languages or create new language files manually. Remember to edit the language file in an editor with UTF-8 character code support.