demo/dist/demo.js
function getLabel(track) {
	    var currentTrack = track;

	    if (!is$1.track(currentTrack) && support.textTracks && this.captions.toggled) {
	      currentTrack = captions.getCurrentTrack.call(this);
	    }

	    if (is$1.track(currentTrack)) {
	      if (!is$1.empty(currentTrack.label)) {
	        return currentTrack.label;
	      }

	      if (!is$1.empty(currentTrack.language)) {
	        return track.language.toUpperCase();
	      }

	      return i18n.get('enabled', this.config);
	    }

	    return i18n.get('disabled', this.config);
	  }
function getLabel(track) {
	    var currentTrack = track;

	    if (!is$1.track(currentTrack) && support.textTracks && this.captions.toggled) {
	      currentTrack = captions.getCurrentTrack.call(this);
	    }

	    if (is$1.track(currentTrack)) {
	      if (!is$1.empty(currentTrack.label)) {
	        return currentTrack.label;
	      }

	      if (!is$1.empty(currentTrack.language)) {
	        return track.language.toUpperCase();
	      }

	      return i18n.get('enabled', this.config);
	    }

	    return i18n.get('disabled', this.config);
	  }
Get UI label for track