Embed BabelShark script

BabelShark requires a "code snippet", a single .js script to be embedded into your page:

Add this code to your HTML, to <head> preferably

Read more about configuration object at API Reference page.

Language dropdown

You probably also want a language-selection dropdown somewhere on the page (you can use API to switch languages but built-in dropdown is a good start):

This snippet should be added exactly where you want a language dropdown to reside. BabelShark.js will turn this snippet to a language flag button and a dropdown:

Read about language widget configuration in API Reference.

Last updated