Javascript SDK

  1. Home
  2. Docs
  3. Javascript SDK
  4. API methods

API methods

The Javascript SDK provides 2 methods:

  • init
  • switchLanguage

init API method

This is used to initialize Teral on your website. The method expects a configuration object. The only required field is the apiKey.

For a list of all configuration values, please visit


Teral.init({apiKey : "abc" })

For a list of all the different options please visit

switchLanguage API method

This method is used to switch to a different language. It expects one parameter which is the 2 letter code of the language you would like to switch to.

For example, to switch the page to French (fr), you simply call this method

Was this article helpful to you? Yes No

How can we help?