One dictionary, every language
Keep every translation in a plain object keyed by language, and switch the active language at any time.
Define a dictionary, create a translator, and translate a string, a single element or a whole DOM tree in one call. Lightweight, zero-dependency, and typed.