Client side integration

Setup and initialization

Replace API_KEY by your own API key. You can get an API key simply bysigning up.

Put your original language in originalLanguage and the languages you want to be available in destinationLanguages.

For instance, if your website is in English, and you want it to be available in French and Spanish, you will enter ‘originalLanguage’ : ‘en’ and ‘destinationLanguages’ : ‘fr,es’

Then, simply reload your webpage and it is done!You will see at the bottom right of your website a button to switch language. You can stop reading here or you can continue further to customize the button.

Playing with parameters

You can check the full parameters description of Weglot in our developer space