Help guides

Add a language switcher to a subdomain site

Add a container div and one script tag before the closing body tag to show a dropdown of flags on a subdomain site.

Updated

The language switcher for a subdomain site is a dropdown of flags. You add two pieces of code to your pages: a container where the dropdown shows, and a script that loads the widget.

Add the switcher

  1. Add this code to the place you want the dropdown of flags to show:

    html
    <div id="fluentc-lang-switcher"></div>
    
  2. Just before the closing </body> tag, add:

    html
    <script async
       src="https://widget.fluentc.io/fluentc.v1.0.1.js"
       integrity="sha384-i67c0HA8k9cveXN7Zmg4glsraDLNYO62f0DK2H/Cu7fNbulBhhDJz0ZzAT05p8m6"
       crossorigin="anonymous"></script>
    

Note: The script loads the widget from https://widget.fluentc.io/fluentc.v1.0.1.js. Copy the tag exactly as shown, including the integrity and crossorigin attributes.

Start with one language.

Flat price per site, per language. Unlimited translations.