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 the pre-roll video uses Spanish language.

Additional language support can be added to the Video.js in multiple ways.Language support is described in detail on dedicated website http://docs.videojs.com/docs/guides/languages.html.

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, 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>
var player = videojs('example_video_1',{language: 'es'});
player.nuevo({
//plugin options here
});
</script>
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 supports UTF-8 character, e.g. free PSPad.
  2. In any line between other translation lines enter an original quoted text string and after colon your quoted translation string.
  3. If this is not last translation line, remember to put a 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 translate phrases. Save your file as your language-shortcut.js file in "lang" directory. Remember to edit language file in an editor with UTF-8 characted code support.