Languages for videojs

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.
Player example above with preroll video use Spanish language.

Additional language support can be added to Video.js in multiple ways.Language support is described in detail on dedictaed website

Video.js distribution package includes "lang" directory with multiple .json files, each representing certain language translation. For much easier use Nuevodevel also prepared appropriate javascript files with language translations and this makes very easy to load and apply custom language to player, just likr Spanish (es.js) in example below.
Code snippet
<script src="//"></script>
<script src="//"></script>
<script src="//"></script>
var player = videojs('example_video_1',{language: 'es'});
	//plugin options here
If you find some player text not translated (original English only), it's easy to apply new translation.
  1. Download language .js file and open it in editor which fully support UTF-8 character, eg. free PSPad.
  2. In any line between other translation lines enter original quoted text string and after colon your quoted translation string.
  3. If this is not last translation line, remember to put comma in the end of the line.
  4. Save updated file and upload back to server.
If you miss your language in "lang" directory, just create new empty file, copy content from English file (en.js) and traslate phrases. Save your file as your language-shortcut.js file in "lang" directory. Remember to edit language file in editor which support UTF-8 characted code.