While reading this answer to whether or not a druid knows the languages of his/her chosen form, I began to wonder, "What is a language exactly?" Please allow me to walk you through my thought process. I hope these aren't considered as separate questions so much as things that help clarify my problem.
Is it a skill? I can't find anything in the PHB or DMG that relates skills and proficiencies to language. In fact, when both are mentioned in a given header, they are never mentioned together as the same thing. I can't seem to find out how you learn a language, though I'm sure rules exist that might shed light on the issue.
Is it part of the stat block? When creating monsters in the DMG, there is a table for statistics, which doesn't include ability scores. So I don't think language is part of the statistics, which would contest the idea that a druid only knows the languages his Wild Shape form knows (see the linked answer above). True Polymorph has similar language to Wild Shape (where this question stems from), and makes no mention of language other than to say you can't speak unless your new form is capable of speaking. Otherwise, language is either omitted or assumed to be part of creature statistics, ability scores, and/or skills.
Is it related to attribute scores? I've heard that things with low intelligence don't know languages, but I can't find any proof to back it up. If that were true, perhaps language can be considered to be tied directly to an ability score and therefore not part of the stat block. This would also mean that modifying ability scores could potentially affect language speaking ability as a RAW effect, but might not make sense to change the languages you do know.
Is it part of personality? Feeblemind mentions "Shattering its intellect and personality" by reducing intelligence and charisma scores to 1. Personality is also mentioned in True Polymorph and Wild Shape, which might lend credence to the idea that language is tied to personality OR it might mean it's tied to ability scores. Feeblemind also specifically mentions that the target can't understand or speak any language, presumably as a result of intelligence and/or charisma being 1. If language were tied to personality, changing your form wouldn't affect language as long as you retained your personality.
Is it it's own thing? Perhaps languages aren't related to anything and this might mean there is no hard and fast rule regarding what languages are and how they are related to the technical aspects of the game.
So what is a language? Perhaps to get behind this question is to ask "What are the implications of changing your ability scores, statistics, and skills for language?"