How do I add Localize to my site?

Modified on Fri, Mar 7 at 5:09 PM

Getting started with Localize For Web is simple and shouldn't take more than a few minutes. If you haven't already, first follow the instructions for Signing Up, where you will create your first Website / Web App project.


Step 1: Install the Localize Tag

Copy and paste the following code snippet in the <head> tag in your website, on all pages that you want to Localize, replacing YOUR_PROJECT_KEY with the project key from your Localize project. Alternatively, check out our list of Integrations to see if one of them applies to your website.


<script src="https://global.localizecdn.com/localize.js"></script>
<script>(function(a){if(!a.Localize){a.Localize={};for(var e=["translate","untranslate","phrase","initialize","translatePage","setLanguage","getLanguage","detectLanguage","getAvailableLanguages","untranslatePage","bootstrap","prefetch","on","off","hideWidget","showWidget","getSourceLanguage"],t=0;t<e.length;t++)a.Localize[e[t]]=function(){};}})(window);</script>

<script>
  Localize.initialize({
    key: 'YOUR_PROJECT_KEY', 
    rememberLanguage: true,
    // other options go here, separated by commas
  });
</script>

You can find your Project Key on the Project Overview page.


Step 2: Verify successful installation

After installing the code snippet, refresh your website/application.

  • If you see the Localize language-switching widget on your site then Localize is successfully installed.
  • Switch to one of your target languages and visit the pages on your website. Localize will automatically detect new content and will bring it into your dashboard.
Step 3: Check for Phrases in the Dashboard
  • Visit the Manage Phrases page to review your content. 
  • Move the approved phrases from the Pending bin to the Published bin and translations will be automatically generated and will be available on your website.


Read more in our Quickstart for Web help article.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article