Popcorn.locale

HTML

<script src="https://raw.github.com/jbuck/popcorn-js/develop/popcorn.js"></script>
<video height="180" width="300" id="video" controls> 
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm"></source>
</video>

CSS

html{font-family:arial;}

JavaScript

var $pop = Popcorn("#video");

console.log( "Default Locale Information: " );
console.dir( Popcorn.locale.get() );


// Listen for changes to the locale...
//$pop.listen( "locale:changed", function() {
  
  // Calls to Popcorn.locale.get() will return the current locale object
  console.log( "Updated Locale Information: " );
  //console.dir( Popcorn.locale.get() );

});

// Calls to Popcorn.locale.set() will trigger the "locale:changed" 
// event on all existing Popcorn instances
//Popcorn.locale.set("fr-CA");