Is this for a demonstration or for actual use by end-users?
For demonstration purposes, I suggest you grab an extension for your browser that allows translation (or use your browser’s native translator functionality, if available).
Both Google and Microsoft used to have an embeddable translator widget for websites, but they retired them. They might still be available through Google Cloud Platform and Microsoft Azure as a paid service.
We fallback on an array of keyed objects for translation @Antony
Still works really well. What we did find is that a lot of users still used Google translate despite this functionality, so the question is was it worth the effort to implement it? Especially when the modern browser makes it so easy to click a button and voila translation.
Anyway here is a quick video on the method if you are interested.
If I do an actual translation, then I will use a similar kind of method… but right now I just want a URL that will translate everything without the user having to select some translation service after they have arrived on the page!
The above is not a translation service. You compile the translations, then you will use the users browser language to automatically load the array and replace the default language with the browser specified language. BUT for each language you offer YOU have to make the translations and store them in to your database, be it phrases or single words etc. You input them, they are replaced if they exist otherwise the default language is the fall back.
That widget was actually withdrawn by Google about 5 years ago so you won’t find it on a Google site but it still works if you have the code. It’s like a pre AI universaly translator!