Dec 12, 2021
I really like how you approached this problem. I hope you keep at it.
Last year I came up with my own solution which is not too dissimilar. https://codeburst.io/2020-029-solving-the-trilingual-challenge-980faf1218d2
Mixing layout, styling, and behavior always felt like it was going against the separation of concerns policy that we all pledged allegiance to long ago.
For me, keeping the HTML and CSS outside of JS feels like the right approach.