Translate Softr

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

709

Below is a step-by-step guide for integrating Localize into your Softr website using custom code. The custom code feature is available on the Basic plan and above. These instructions assume that you have already created your website.

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

1. Select "Settings > Custom code"

  1. Navigate to your website in your Softr dashboard.
  2. Select the Settings option in the left navbar.
  3. Select Custom code.

2. Paste the code snippet

749
  1. Copy the following Localize code snippet and paste it into the Code inside header field.

  2. <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: 'PROJECT_KEY', 
        rememberLanguage: true,
        // other options go here, separated by commas
      });
    </script>
    
  3. Be sure to replace PROJECT_KEY in the snippet with your project key.

  4. Click Save.

  5. Publish the changes on 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!