Translate Lovable Websites

This Lovable Websites integration guide shows you how to translate your Lovable website in a few easy steps.

709

Below is step-by-step guide for integrating Localize into your Lovable website using a Lovable AI prompt. These instructions assume that you have already created your website.

If you do not have a Localize Project yet, signup here!

1. Edit your Lovable Website

  1. Navigate to your website in your Lovable dashboard.

2. Insert the Localize code snippet

  1. Paste the following prompt into the Ask Lovable.. prompt panel.
    Add the following Localize JavaScript snippet to my website’s element so that it runs on all pages of the site. The snippet is:
    1. Be sure to replace the value for the key option [[app:key]] with your Localize Project Key if it's not already there.
  2. After the prompt has been completed, you should see the Localize language-switching widget on your site.
  3. Publish your site.

3. Add Initialization Options

Add any desired options to the Localize.initialize() call above, check here for the full list of possible options.

Some popular options include:

  • autoApprove - use to fully automate your translation workflow
  • localizeImages - allows for localization of images in your site

4. Reload your website.

  1. Visit your website in a browser.
  2. Select one of your target languages using the language-switching widget.
  3. Refresh the page.
  4. Lather, rinse, repeat, for each page on your site.

Localize will automatically detect new content on the pages you visit and bring it into your dashboard.

5. Approve phrases

Then head on over to the Manage Phrases page to approve phrases in the Localize dashboard.

6. Phrases not showing up?

If you are not seeing phrases show up in your Pending bin in the Localize dashboard, follow the troubleshooting instructions here.


Need Help?
Contact support for custom integration help or troubleshooting!