tinymce.full.js
function (name, languages) {
        var language = AddOnManager.language;

        if (language && AddOnManager.languageLoad !== false) {
          if (languages) {
            languages = ',' + languages + ',';

            // Load short form sv.js or long form sv_SE.js
            if (languages.indexOf(',' + language.substr(0, 2) + ',') != -1) {
              language = language.substr(0, 2);
            } else if (languages.indexOf(',' + language + ',') == -1) {
              return;
            }
          }

          ScriptLoader.ScriptLoader.add(this.urls[name] + '/langs/' + language + '.js');
        }
      }
function (name, languages) {
        var language = AddOnManager.language;

        if (language && AddOnManager.languageLoad !== false) {
          if (languages) {
            languages = ',' + languages + ',';

            // Load short form sv.js or long form sv_SE.js
            if (languages.indexOf(',' + language.substr(0, 2) + ',') != -1) {
              language = language.substr(0, 2);
            } else if (languages.indexOf(',' + language + ',') == -1) {
              return;
            }
          }

          ScriptLoader.ScriptLoader.add(this.urls[name] + '/langs/' + language + '.js');
        }
      }
function ( name , languages ) { var language = AddOnManager . language ; if ( language && AddOnManager . languageLoad !== false ) { if ( languages ) { languages = ',' + languages + ',' ; // Load short form sv.js or long form sv_SE.js if ( languages . indexOf ( ',' + language . substr ( 0 , 2 ) + ',' ) != - 1 ) { language = language . substr ( 0 , 2 ) ; } else if ( languages . indexOf ( ',' + language + ',' ) == - 1 ) { return ; } } ScriptLoader . ScriptLoader . add ( this . urls [ name ] + '/langs/' + language + '.js' ) ; } }
Loads a language pack for the specified add-on.

@method requireLangPack
@param {String} name Short name of the add-on.
@param {String} languages Optional comma or space separated list of languages to check if it matches the name.
Loads a language pack for the specified add - on .