code: function getLanguageCode(langCode) {
          if (!languageCodes[langCode]) {
              languageCodes[langCode] = langCode.split(/\-|_/).shift();
          }
          return languageCodes[langCode];
      }
docs: Method extracts iso639-2 language code from code with locale e.g. pl_PL, en_US, etc.
  If it's provided with standalone iso639-2 language code it simply returns it.
  @param {String} langCode
  @returns {String} iso639-2 language Code