geraintluff/tv4 — pull request #135 by Bartvds (2014-06-07 00:38:29+00:00)
Title: added UMD capability to language file

First proposal as per #133

I added an UMD header to the language file, so:

For commonJS on node it exports the language map:

````js
var tv4= require('tv4');
var lang = require('tv4/lang/de')
tv4.addLanguage('de', lang );
````

For AMD require the language map and add it:

````js
require(['path/to/tv4', 'path/to/tv4/lang/de'], function(tv4, lang){
tv4.addLanguage('de', lang );
});
````

With globals it automagically adds itself to the global `tv4` (make sure to place after tv4.js):

````js