How can I optimize a character in regards to known languages? Unearthed Arcana, Multiclassing and such are allowed, as are feats. I am not interested in every single possibility to get a language, but a way to get a lot of languages without investing too much. For example, going Mastermind (3 levels in Rogue) would bring two languages, compared to only one language from Cavalier (3 levels in fighter).
This is similiar, but distinct from Every language character optimization, as this questions aims to find a way to actually learn the languages, not find a way to speak/read/write every language.
Best Answer
12 languages before you leave Tier 1
11.5 with limited multiclassing.
10.5 with no multiclassing.
Ideal background:
Sage
Ideal races
Half-Elf, Yuan-Ti Pureblood, Firbolg (3 languages instead of 2)
Human (2 languages and Linguist feat before 4th level)
Ideal classes
Cleric (Knowledge): 1 level -> 2 languages
Druid: 1 level -> 1 language
Fighter (Cavalier): 3 levels -> 1 language
Ranger: 1 level -> 1 language (6, 14 levels -> 2, 3 languages)
Rogue (Mastermind): 3 levels -> 2 languages + Thieves' cant (1/2)
Sorcerer (Storm): 1 level -> 1 language
Using Tier 1 as the cutoff for a "low level" character, the ideal build is
Human Sage Cleric 1/Druid 1/Ranger 1/Sorcerer 1 (12 languages):
Common
Primordial
Druidic
a monster language
8 other languages of your choice
If not- or limited-multiclassing, the next best would be
Human Sage Cleric 1/Rogue 3 (11 languages + Thieves' Cant)
Firbolg Sage Cleric 4 (10 languages)
Half-elf Sage Rogue 4 (10 languages + Thieves' Cant)