My website is designed to support three languages - English, Vietnamese, and Myanmar. Users can submit content in any of these languages, and their submissions are stored in the database. When the content is displayed, I need to determine the language in which it is written and then ensure that it is displayed correctly using the appropriate font installed on the user's browser.
For example, if a user submits content in Myanmar language, it is stored in the database. When the user's page is loaded, I need to check if the content is in English, Myanmar, or Vietnamese, and then determine the font installed on the browser for proper display.
While it is easy to find information on how to detect the installed font, such as in resources like this or that, I am struggling to find a way to automatically detect the language in which a piece of text is written. Can anyone provide any guidance or a clue?
EDIT: I came across a solution on Quora where someone detects whether the text is in English or not. I believe this approach will suffice for my needs.