Skip to content

andabove/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCCO Scripts

Introduction

We have created our own implementation of the weglot translation module to allow for custom language selectors. To make it easier for integrations below is a how to guide as well as displaying some of the other options available.

Integration

This is the basic integration code

<!-- Start of weglot code -->
<script
  type="text/javascript"
  src="https://cdn.weglot.com/weglot.min.js"
></script>

The RCCO implementation, make sure to check on the right that the version numbers match for latest. If you are not sure, check with a developer.

<!-- Start of RCCO Weglot Code -->
<script
  type="text/javascript"
  src="https://cdn.jsdelivr.net/gh/rcco/[email protected]/webflow/language_switcher.min.js"
></script>

The initialisation code from weglot

<script>
  Weglot.initialize({
    api_key: "API_KEY_HERE",
    hide_switcher: true,
    cache: true,
  });
</script>

<!-- End of integration -->

If you need to change some of the settings (such as enabling hubspot insights search and replace) then you will need to include this piece of code above the RCCO implementation. To see the other options available, check in the code

<script type="text/javascript">
  window.weglotCustomOptions = {
    INSIGHTS: {
      enabled: true,
      domain: "HUBSPOT_DOMAIN_HERE",
      prefix: "insights",
    },
  };
</script>

Config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published