Necklace of Languages (5e Equipment)
From D&D Wiki
Wondrous item, rare (requires attunement)
This necklace has 2d6 + 4 magic beads made from various gemstones. If a magic bead is removed from the necklace, that bead loses its magic.
Sixteen types of magic beads exist. The DM decides the type of each bead on the necklace or determines it randomly. A necklace can have more than one bead of the same type. As an action, you can touch one of the beads and gain the ability to speak, read and write a language indicated by the gemstone of the bead for 8 hours. When a language is spoken within 30 feet of the necklace or if you touch a piece of writing the associated bead if any glows slightly. Once a magic bead is used, that bead can't be used again until the next dawn.
If a bead is removed from the necklace a creature can use the bead as an action, the bead becoming nonmagical after its use.