0

Multi language website

How do I build a website that allows users to switch the page text to other languages from a drop down

11th Sep 2019, 8:09 AM
Timmy junior Okirika
Timmy junior Okirika - avatar
1 Answer
+ 3
You can create multiple subdirectories - each these subdirectories contains same contents (documents, stylesheets etc.), but the document contents are written in distinct language. You then add an event handler for the drop-down using JS. The event handler should redirect the navigation to a file stored in the relevant <language> subdirectory, depending on the value of the drop-down. There should be more elegant ways advanced coders here can suggest, I'm just passing off an idea. Good luck! 👍
11th Sep 2019, 9:25 AM
Ipang