Lovable - Integration / Setup

In this article, you will learn more about how to integrate Weglot into your Lovable website.

 

If you don’t have a Weglot account, you will need to create one and will have to follow the onboarding steps described in this article we made.

 

Once you create your Weglot project, you’ll need to indicate your website URL.
 
Weglot should detect your CMS and indicate “Other” (if your website uses Lovable), but if this isn't the case, you'll be able to choose “Other” via the “Project's technology” section:


 

After this, you’ll need to indicate the source language of your website and the language(s) you want to translate it into:
 
Once you’ve completed this step, your website will be scanned, and you’ll access a section in which you can give some information about your website and the translations you desire.
There will be a short description of your website, and you'll have the possibility to select tags to adapt translations.
You'll also have a translation on the right, which you can edit to check the translation's quality and adapt the prompt on the left:


In the next step, you can indicate some guidelines so that translations are more adapted to your needs.
Some examples of guidelines are already given, you can choose to directly use them or you can edit them. 

 

After going ahead, you will have access to this page:

 

On this page, you'll find the Weglot code that you need to copy and paste into the header section of your website code.

Just integrate it via the Lovable dedicated tool:
 

Note that using the chat will cost you 1 Lovable credit.

If you don't want to use a Lovable credit and have a paid subscription on Lovable, you can use the "Code Mode" to integrate Weglot into your website.


To do so, just click on this option at the top:

Then, go to the "index.html" file and add the Weglot script just before the ⟨/head⟩ tag:


You've now successfully translated your website. Go to your website, and you'll see a language switcher at the bottom right of your site (it may take a few minutes to appear). You can also change its position - check out our guide to find out how. 

 

Once you've done this, you can click on “Verify my installation” and the setup should be finished.

If there is an error, you'll see a button to relaunch the verification, and another one allowing you to contact our support team and get some help.

 

Note that you have a switcher at the bottom right to allow you to change your website technology if it is Shopify, Webflow, Wix, or Squarespace.

 

If you want a coworker to assist you with the setup, click on “Send to a coworker”:

 

You'll see an email template (not editable), asking for help from your coworker to integrate the code snippet into your website:

 

Just indicate your coworker's email at the bottom and click on “Send”.

 

If you are having any difficulties setting Weglot up, do not hesitate to contact us at help@weglot.com.

 

 

 

Give feedback about this article

Was this article helpful?