I have a use case where a paragraph of text could be in any language, based on data that was input by the user elsewhere. I need to display it in right-to-left or left-to-right based on the language of the value.
Note: I am not referring to the language of the whole page. I need to set the direction for this particular paragraph based on the data's language.
Is there any way to do that without using JavaScript?