Let me clarify my situation. I want to create a platform where users can input text in both Hebrew and English, regardless of the language of the website itself. This means that users could type in Hebrew on an English website and vice versa. My goal is to have matching fonts for each language so that the input box looks visually appealing in both English and Hebrew.
My question is: How can I implement two different fonts for two languages within one element?
Just a heads up, using :lang(he)
is not the solution as it only recognizes language based on the HTML attribute lang
. It is similar to using [lang=he]