Weglot

Add localization with Weglot

Translate all your content and make your toddle website multilingual within minutes.

1) Create an account on Weglot

You can manage and view all your translations through this account. Create your Weglot account here .

Create an account on Weglot  - Weglot

2) Select “Other” as your “Website Technology”

If you are integrating Weglot with JavaScript, and your website technology is not listed, choose “Other” as your “Website Technology.”

Select “Other” as your “Website Technology”  - Weglot

3) Choose the “JavaScript Integration” option

You should receive a validation email in the account with which you signed up.

After validating your email, you will be redirected to the Weglot setup page, as shown below. Scroll down to the form's end and click “Use JavaScript integration.”

Choose the “JavaScript Integration” option  - Weglot

4) Add your new languages

You’ll then be prompted to enter the original language of your website and the new language(s) you want to translate and display your site in.

Click “Next”.

Add your new languages - Weglot

5) Copy the API key.

Copy the API key - Weglot


6) Add Weglot to your toddle website

  • Create a new branch and go in the editor
  • On the left hand-side, client on the Files icon
Add Weglot to your toddle website - Weglot
  • Click on the page you want to modify, here it’s HomePage
Click on the page you want to modify, here it’s HomePage - Weglot
  • On the right hand-side, click on the page url, here it’s /
On the right hand-side, click on the page url, here it’s / -Weglot
  • Click on Head Assets Add external resource
Click on Head Assets - Weglot
  • Type : script & Content : Empty
  • Attribute : src & Content : https://cdn.weglot.com/weglot.min.js?api_key=wg_XXXXXXX → insert your Weglot api_key
Attribute:src & Content : https://cdn.weglot.com/weglot.min.js?api_key=wg_XXXXXXX → insert your Weglot api_key

Click Done , you can now test or deploy your site that will now have the Weglot language switcher

This is a cross-post from Weglot .