Implementing webpage language translation option in the website

In my capstone project I have to implement multilingual support in the website using java where i am going to host it locally using localhost, i used Mysql through JSP as back-end and HTML, CSS and Js as front-end. How can i implement multiple language translation of this webpage using a dropdown menu with multiple languages, when selected whole page translates into that selected language.I searched on the web in many ways i just did not find any working implementation. Please help me do this. Thank You!

Source: stackoverflow-javascript