Code snippets

The main code snippet to enable BabelShark translation is available at your project page:

Adding this code snippet initiates the loading of BabelShark code, its API and project settings. If current user has a translation language selected, the project will seamlessly switch to that language.

Language drop-down

If you want to display a built-in language selection drop-down, add .bs-activator element to the required position:

<span class="bs-activator" data-drop="auto"></span>

This will render a language selector:

Read more about language drop-down configuration and parameters.

Last updated