The language read-only property of the TextTrack interface returns the language of the text track.
language
MDN Reference