Translate Lovable Websites
This Lovable Websites integration guide shows you how to translate your Lovable website in a few easy steps.
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
- Navigate to your website in your Lovable dashboard.
2. Insert the Localize code snippet
- 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:- Be sure to replace the value for the
keyoption[[app:key]]with your Localize Project Key if it's not already there.
- Be sure to replace the value for the
- After the prompt has been completed, you should see the Localize language-switching widget on your site.
- 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.
- Visit your website in a browser.
- Select one of your target languages using the language-switching widget.
- Refresh the page.
- 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!
Updated 10 minutes ago
